/*
 jQuery JavaScript Library v3.5.1
 https://jquery.com/

 Includes Sizzle.js
 https://sizzlejs.com/

 Copyright JS Foundation and other contributors
 Released under the MIT license
 https://jquery.org/license

 Date: 2020-05-04T22:49Z
 Sizzle CSS Selector Engine v2.3.5
 https://sizzlejs.com/

 Copyright JS Foundation and other contributors
 Released under the MIT license
 https://js.foundation/

 Date: 2020-03-14
*/
window.ContextHubKernelConfig={debug:!1,initializationTimeout:2E3,stores:{geolocation:{type:"contexthub.geolocation",required:!0,config:{geocoder:{enabled:!0}}},surferinfo:{type:"contexthub.surferinfo",required:!0},profile:{type:"granite.profile",required:!0},emulators:{type:"granite.emulators",required:!0},eventdata:{type:"aem.analyticsdata",required:!0},pagedata:{type:"aem.pagedata",required:!0},segmentation:{type:"aem.segmentation",required:!0},metadata:{type:"campaign.metadata",required:!1},seeddata:{type:"campaign.seeddata",
required:!1},abandonedproducts:{type:"commerce.abandonedproducts",required:!0},recentlyviewed:{type:"commerce.recentlyviewed",required:!0},cart:{type:"commerce.cart",required:!0},orderhistory:{type:"commerce.orderhistory",required:!0},relatedproducts:{type:"commerce.relatedproducts",required:!0},smartlists:{type:"commerce.smartlists",required:!0}}};
(function(m,t){"object"===typeof module&&"object"===typeof module.exports?module.exports=m.document?t(m,!0):function(n){if(!n.document)throw Error("jQuery requires a window with a document");return t(n)}:t(m)})("undefined"!==typeof window?window:this,function(m,t){function n(a,b,e){e=e||ia;var f,l=e.createElement("script");l.text=a;if(b)for(f in Pc)(a=b[f]||b.getAttribute&&b.getAttribute(f))&&l.setAttribute(f,a);e.head.appendChild(l).parentNode.removeChild(l)}function d(a){return null==a?a+"":"object"===
typeof a||"function"===typeof a?Eb[ec.call(a)]||"object":typeof a}function c(a){var b=!!a&&"length"in a&&a.length,e=d(a);return ba(a)||qb(a)?!1:"array"===e||0===b||"number"===typeof b&&0<b&&b-1 in a}function h(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}function k(a,b,e){return ba(b)?g.grep(a,function(f,l){return!!b.call(f,l,f)!==e}):b.nodeType?g.grep(a,function(f){return f===b!==e}):"string"!==typeof b?g.grep(a,function(f){return-1<Fb.call(b,f)!==e}):g.filter(b,a,e)}function p(a,
b){for(;(a=a[b])&&1!==a.nodeType;);return a}function q(a){var b={};g.each(a.match(Za)||[],function(e,f){b[f]=!0});return b}function y(a){return a}function x(a){throw a;}function D(a,b,e,f){var l;try{a&&ba(l=a.promise)?l.call(a).done(b).fail(e):a&&ba(l=a.then)?l.call(a,b,e):b.apply(void 0,[a].slice(f))}catch(r){e.apply(void 0,[r])}}function F(){ia.removeEventListener("DOMContentLoaded",F);m.removeEventListener("load",F);g.ready()}function J(a,b){return b.toUpperCase()}function I(a){return a.replace(Qc,
"ms-").replace(Rc,J)}function O(){this.expando=g.expando+O.uid++}function ja(a,b,e){if(void 0===e&&1===a.nodeType)if(e="data-"+b.replace(Sc,"-$\x26").toLowerCase(),e=a.getAttribute(e),"string"===typeof e){try{var f=e;e="true"===f?!0:"false"===f?!1:"null"===f?null:f===+f+""?+f:Tc.test(f)?JSON.parse(f):f}catch(l){}Na.set(a,b,e)}else e=void 0;return e}function ka(a,b,e,f){var l,r=20,v=f?function(){return f.cur()}:function(){return g.css(a,b,"")},C=v(),z=e&&e[3]||(g.cssNumber[b]?"":"px"),B=a.nodeType&&
(g.cssNumber[b]||"px"!==z&&+C)&&vb.exec(g.css(a,b));if(B&&B[3]!==z){C/=2;z=z||B[3];for(B=+C||1;r--;)g.style(a,b,B+z),0>=(1-l)*(1-(l=v()/C||.5))&&(r=0),B/=l;B*=2;g.style(a,b,B+z);e=e||[]}if(e){B=+B||+C||0;var G=e[1]?B+(e[1]+1)*e[2]:+e[2];f&&(f.unit=z,f.start=B,f.end=G)}return G}function W(a,b){for(var e,f,l=[],r=0,v=a.length;r<v;r++)if(f=a[r],f.style)if(e=f.style.display,b){if("none"===e&&(l[r]=T.get(f,"display")||null,l[r]||(f.style.display="")),""===f.style.display&&Gb(f)){e=r;var C=f.ownerDocument;
f=f.nodeName;var z=fc[f];z||(C=C.body.appendChild(C.createElement(f)),z=g.css(C,"display"),C.parentNode.removeChild(C),"none"===z&&(z="block"),fc[f]=z);C=z;l[e]=C}}else"none"!==e&&(l[r]="none",T.set(f,"display",e));for(r=0;r<v;r++)null!=l[r]&&(a[r].style.display=l[r]);return a}function fa(a,b){var e="undefined"!==typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!==typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&h(a,b)?g.merge([a],e):e}function Ea(a,
b){for(var e=0,f=a.length;e<f;e++)T.set(a[e],"globalEval",!b||T.get(b[e],"globalEval"))}function sa(a,b,e,f,l){for(var r,v,C,z=b.createDocumentFragment(),B=[],G=0,M=a.length;G<M;G++)if((r=a[G])||0===r)if("object"===d(r))g.merge(B,r.nodeType?[r]:r);else if(Uc.test(r)){v=v||z.appendChild(b.createElement("div"));C=(gc.exec(r)||["",""])[1].toLowerCase();C=Qa[C]||Qa._default;v.innerHTML=C[1]+g.htmlPrefilter(r)+C[2];for(C=C[0];C--;)v=v.lastChild;g.merge(B,v.childNodes);v=z.firstChild;v.textContent=""}else B.push(b.createTextNode(r));
z.textContent="";for(G=0;r=B[G++];)if(f&&-1<g.inArray(r,f))l&&l.push(r);else if(a=rb(r),v=fa(z.appendChild(r),"script"),a&&Ea(v),e)for(C=0;r=v[C++];)hc.test(r.type||"")&&e.push(r);return z}function oa(){return!0}function ya(){return!1}function Qb(a,b){a:{try{var e=ia.activeElement;break a}catch(f){}e=void 0}return a===e===("focus"===b)}function N(a,b,e,f,l,r){var v;if("object"===typeof b){"string"!==typeof e&&(f=f||e,e=void 0);for(v in b)N(a,v,e,f,b[v],r);return a}null==f&&null==l?(l=e,f=e=void 0):
null==l&&("string"===typeof e?(l=f,f=void 0):(l=f,f=e,e=void 0));if(!1===l)l=ya;else if(!l)return a;if(1===r){var C=l;l=function(z){g().off(z);return C.apply(this,arguments)};l.guid=C.guid||(C.guid=g.guid++)}return a.each(function(){g.event.add(this,b,l,f,e)})}function R(a,b,e){e?(T.set(a,b,!1),g.event.add(a,b,{namespace:!1,handler:function(f){var l=T.get(this,b);if(f.isTrigger&1&&this[b])if(l.length)(g.event.special[b]||{}).delegateType&&f.stopPropagation();else{l=gb.call(arguments);T.set(this,b,
l);var r=e(this,b);this[b]();var v=T.get(this,b);l!==v||r?T.set(this,b,!1):v={};if(l!==v)return f.stopImmediatePropagation(),f.preventDefault(),v.value}else l.length&&(T.set(this,b,{value:g.event.trigger(g.extend(l[0],g.Event.prototype),l.slice(1),this)}),f.stopImmediatePropagation())}})):void 0===T.get(a,b)&&g.event.add(a,b,oa)}function ca(a,b){return h(a,"table")&&h(11!==b.nodeType?b:b.firstChild,"tr")?g(a).children("tbody")[0]||a:a}function wa(a){a.type=(null!==a.getAttribute("type"))+"/"+a.type;
return a}function ha(a){"true/"===(a.type||"").slice(0,5)?a.type=a.type.slice(5):a.removeAttribute("type");return a}function la(a,b){var e,f,l;if(1===b.nodeType){if(T.hasData(a)){var r=T.get(a);if(l=r.events)for(f in T.remove(b,"handle events"),l)for(r=0,e=l[f].length;r<e;r++)g.event.add(b,f,l[f][r])}Na.hasData(a)&&(a=Na.access(a),a=g.extend({},a),Na.set(b,a))}}function ta(a,b,e,f){b=ic(b);var l,r=0,v=a.length,C=v-1,z=b[0],B=ba(z);if(B||1<v&&"string"===typeof z&&!na.checkClone&&Vc.test(z))return a.each(function(pa){var Y=
a.eq(pa);B&&(b[0]=z.call(this,pa,Y.html()));ta(Y,b,e,f)});if(v){var G=sa(b,a[0].ownerDocument,!1,a,f);var M=G.firstChild;1===G.childNodes.length&&(G=M);if(M||f){M=g.map(fa(G,"script"),wa);for(l=M.length;r<v;r++){var Q=G;r!==C&&(Q=g.clone(Q,!0,!0),l&&g.merge(M,fa(Q,"script")));e.call(a[r],Q,r)}if(l)for(G=M[M.length-1].ownerDocument,g.map(M,ha),r=0;r<l;r++)Q=M[r],hc.test(Q.type||"")&&!T.access(Q,"globalEval")&&g.contains(G,Q)&&(Q.src&&"module"!==(Q.type||"").toLowerCase()?g._evalUrl&&!Q.noModule&&g._evalUrl(Q.src,
{nonce:Q.nonce||Q.getAttribute("nonce")},G):n(Q.textContent.replace(Wc,""),Q,G))}}return a}function Ca(a,b,e){for(var f=b?g.filter(b,a):a,l=0;null!=(b=f[l]);l++)e||1!==b.nodeType||g.cleanData(fa(b)),b.parentNode&&(e&&rb(b)&&Ea(fa(b,"script")),b.parentNode.removeChild(b));return a}function Oa(a,b,e){var f=a.style;if(e=e||Hb(a)){var l=e.getPropertyValue(b)||e[b];""!==l||rb(a)||(l=g.style(a,b));if(!na.pixelBoxStyles()&&Rb.test(l)&&Xc.test(b)){a=f.width;b=f.minWidth;var r=f.maxWidth;f.minWidth=f.maxWidth=
f.width=l;l=e.width;f.width=a;f.minWidth=b;f.maxWidth=r}}return void 0!==l?l+"":l}function Ra(a,b){return{get:function(){if(a())delete this.get;else return(this.get=b).apply(this,arguments)}}}function Ka(a){var b=g.cssProps[a]||jc[a];if(b)return b;if(a in kc)return a;a:{b=a;for(var e=b[0].toUpperCase()+b.slice(1),f=lc.length;f--;)if(b=lc[f]+e,b in kc)break a;b=void 0}return jc[a]=b||a}function Ta(a,b,e){return(a=vb.exec(b))?Math.max(0,a[2]-(e||0))+(a[3]||"px"):b}function Ua(a,b,e,f,l,r){var v="width"===
b?1:0,C=0,z=0;if(e===(f?"border":"content"))return 0;for(;4>v;v+=2)"margin"===e&&(z+=g.css(a,e+ab[v],!0,l)),f?("content"===e&&(z-=g.css(a,"padding"+ab[v],!0,l)),"margin"!==e&&(z-=g.css(a,"border"+ab[v]+"Width",!0,l))):(z+=g.css(a,"padding"+ab[v],!0,l),"padding"!==e?z+=g.css(a,"border"+ab[v]+"Width",!0,l):C+=g.css(a,"border"+ab[v]+"Width",!0,l));!f&&0<=r&&(z+=Math.max(0,Math.ceil(a["offset"+b[0].toUpperCase()+b.slice(1)]-r-z-C-.5))||0);return z}function Ma(a,b,e){var f=Hb(a),l=(!na.boxSizingReliable()||
e)&&"border-box"===g.css(a,"boxSizing",!1,f),r=l,v=Oa(a,b,f),C="offset"+b[0].toUpperCase()+b.slice(1);if(Rb.test(v)){if(!e)return v;v="auto"}(!na.boxSizingReliable()&&l||!na.reliableTrDimensions()&&h(a,"tr")||"auto"===v||!parseFloat(v)&&"inline"===g.css(a,"display",!1,f))&&a.getClientRects().length&&(l="border-box"===g.css(a,"boxSizing",!1,f),(r=C in a)&&(v=a[C]));v=parseFloat(v)||0;return v+Ua(a,b,e||(l?"border":"content"),r,f,v)+"px"}function La(a,b,e,f,l){return new La.prototype.init(a,b,e,f,l)}
function hb(){Ib&&(!1===ia.hidden&&m.requestAnimationFrame?m.requestAnimationFrame(hb):m.setTimeout(hb,g.fx.interval),g.fx.tick())}function wb(){m.setTimeout(function(){sb=void 0});return sb=Date.now()}function tb(a,b){var e=0,f={height:a};for(b=b?1:0;4>e;e+=2-b){var l=ab[e];f["margin"+l]=f["padding"+l]=a}b&&(f.opacity=f.width=a);return f}function mc(a,b,e){for(var f,l=(Va.tweeners[b]||[]).concat(Va.tweeners["*"]),r=0,v=l.length;r<v;r++)if(f=l[r].call(e,b,a))return f}function Yc(a,b){var e,f;for(e in a){var l=
I(e);var r=b[l];var v=a[e];Array.isArray(v)&&(r=v[1],v=a[e]=v[0]);e!==l&&(a[l]=v,delete a[e]);if((f=g.cssHooks[l])&&"expand"in f)for(e in v=f.expand(v),delete a[l],v)e in a||(a[e]=v[e],b[e]=r);else b[l]=r}}function Va(a,b,e){var f,l=0,r=Va.prefilters.length,v=g.Deferred().always(function(){delete C.elem}),C=function(){if(f)return!1;var B=sb||wb();B=Math.max(0,z.startTime+z.duration-B);for(var G=1-(B/z.duration||0),M=0,Q=z.tweens.length;M<Q;M++)z.tweens[M].run(G);v.notifyWith(a,[z,G,B]);if(1>G&&Q)return B;
Q||v.notifyWith(a,[z,1,0]);v.resolveWith(a,[z]);return!1},z=v.promise({elem:a,props:g.extend({},b),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},e),originalProperties:b,originalOptions:e,startTime:sb||wb(),duration:e.duration,tweens:[],createTween:function(B,G){B=g.Tween(a,z.opts,B,G,z.opts.specialEasing[B]||z.opts.easing);z.tweens.push(B);return B},stop:function(B){var G=0,M=B?z.tweens.length:0;if(f)return this;for(f=!0;G<M;G++)z.tweens[G].run(1);B?(v.notifyWith(a,[z,1,0]),v.resolveWith(a,
[z,B])):v.rejectWith(a,[z,B]);return this}});e=z.props;for(Yc(e,z.opts.specialEasing);l<r;l++)if(b=Va.prefilters[l].call(z,a,e,z.opts))return ba(b.stop)&&(g._queueHooks(z.elem,z.opts.queue).stop=b.stop.bind(b)),b;g.map(e,mc,z);ba(z.opts.start)&&z.opts.start.call(a,z);z.progress(z.opts.progress).done(z.opts.done,z.opts.complete).fail(z.opts.fail).always(z.opts.always);g.fx.timer(g.extend(C,{elem:a,anim:z,queue:z.opts.queue}));return z}function jb(a){return(a.match(Za)||[]).join(" ")}function kb(a){return a.getAttribute&&
a.getAttribute("class")||""}function Sb(a){return Array.isArray(a)?a:"string"===typeof a?a.match(Za)||[]:[]}function Tb(a,b,e,f){var l;if(Array.isArray(b))g.each(b,function(r,v){e||Zc.test(a)?f(a,v):Tb(a+"["+("object"===typeof v&&null!=v?r:"")+"]",v,e,f)});else if(e||"object"!==d(b))f(a,b);else for(l in b)Tb(a+"["+l+"]",b[l],e,f)}function nc(a){return function(b,e){"string"!==typeof b&&(e=b,b="*");var f=0,l=b.toLowerCase().match(Za)||[];if(ba(e))for(;b=l[f++];)"+"===b[0]?(b=b.slice(1)||"*",(a[b]=
a[b]||[]).unshift(e)):(a[b]=a[b]||[]).push(e)}}function oc(a,b,e,f){function l(C){var z;r[C]=!0;g.each(a[C]||[],function(B,G){B=G(b,e,f);if("string"===typeof B&&!v&&!r[B])return b.dataTypes.unshift(B),l(B),!1;if(v)return!(z=B)});return z}var r={},v=a===Ub;return l(b.dataTypes[0])||!r["*"]&&l("*")}function Vb(a,b){var e,f,l=g.ajaxSettings.flatOptions||{};for(e in b)void 0!==b[e]&&((l[e]?a:f||(f={}))[e]=b[e]);f&&g.extend(!0,a,f);return a}function $c(a,b,e){for(var f,l,r,v,C=a.contents,z=a.dataTypes;"*"===
z[0];)z.shift(),void 0===f&&(f=a.mimeType||b.getResponseHeader("Content-Type"));if(f)for(l in C)if(C[l]&&C[l].test(f)){z.unshift(l);break}if(z[0]in e)r=z[0];else{for(l in e){if(!z[0]||a.converters[l+" "+z[0]]){r=l;break}v||(v=l)}r=r||v}if(r)return r!==z[0]&&z.unshift(r),e[r]}function ad(a,b,e,f){var l,r,v={},C=a.dataTypes.slice();if(C[1])for(B in a.converters)v[B.toLowerCase()]=a.converters[B];for(r=C.shift();r;){a.responseFields[r]&&(e[a.responseFields[r]]=b);!z&&f&&a.dataFilter&&(b=a.dataFilter(b,
a.dataType));var z=r;if(r=C.shift())if("*"===r)r=z;else if("*"!==z&&z!==r){var B=v[z+" "+r]||v["* "+r];if(!B)for(l in v){var G=l.split(" ");if(G[1]===r&&(B=v[z+" "+G[0]]||v["* "+G[0]])){!0===B?B=v[l]:!0!==v[l]&&(r=G[0],C.unshift(G[1]));break}}if(!0!==B)if(B&&a.throws)b=B(b);else try{b=B(b)}catch(M){return{state:"parsererror",error:B?M:"No conversion from "+z+" to "+r}}}}return{state:"success",data:b}}var bb=[],pc=Object.getPrototypeOf,gb=bb.slice,ic=bb.flat?function(a){return bb.flat.call(a)}:function(a){return bb.concat.apply([],
a)},Wb=bb.push,Fb=bb.indexOf,Eb={},ec=Eb.toString,Jb=Eb.hasOwnProperty,qc=Jb.toString,bd=qc.call(Object),na={},ba=function(a){return"function"===typeof a&&"number"!==typeof a.nodeType},qb=function(a){return null!=a&&a===a.window},ia=m.document,Pc={type:!0,src:!0,nonce:!0,noModule:!0},g=function(a,b){return new g.fn.init(a,b)};g.fn=g.prototype={jquery:"3.5.1",constructor:g,length:0,toArray:function(){return gb.call(this)},get:function(a){return null==a?gb.call(this):0>a?this[a+this.length]:this[a]},
pushStack:function(a){a=g.merge(this.constructor(),a);a.prevObject=this;return a},each:function(a){return g.each(this,a)},map:function(a){return this.pushStack(g.map(this,function(b,e){return a.call(b,e,b)}))},slice:function(){return this.pushStack(gb.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(a,b){return(b+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(a,b){return b%
2}))},eq:function(a){var b=this.length;a=+a+(0>a?b:0);return this.pushStack(0<=a&&a<b?[this[a]]:[])},end:function(){return this.prevObject||this.constructor()},push:Wb,sort:bb.sort,splice:bb.splice};g.extend=g.fn.extend=function(){var a,b,e,f=arguments[0]||{},l=1,r=arguments.length,v=!1;"boolean"===typeof f&&(v=f,f=arguments[l]||{},l++);"object"===typeof f||ba(f)||(f={});l===r&&(f=this,l--);for(;l<r;l++)if(null!=(a=arguments[l]))for(b in a){var C=a[b];if("__proto__"!==b&&f!==C)if(v&&C&&(g.isPlainObject(C)||
(e=Array.isArray(C)))){var z=f[b];z=e&&!Array.isArray(z)?[]:e||g.isPlainObject(z)?z:{};e=!1;f[b]=g.extend(v,z,C)}else void 0!==C&&(f[b]=C)}return f};g.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw Error(a);},noop:function(){},isPlainObject:function(a){if(!a||"[object Object]"!==ec.call(a))return!1;a=pc(a);if(!a)return!0;a=Jb.call(a,"constructor")&&a.constructor;return"function"===typeof a&&qc.call(a)===bd},isEmptyObject:function(a){for(var b in a)return!1;
return!0},globalEval:function(a,b,e){n(a,{nonce:b&&b.nonce},e)},each:function(a,b){var e,f=0;if(c(a))for(e=a.length;f<e&&!1!==b.call(a[f],f,a[f]);f++);else for(f in a)if(!1===b.call(a[f],f,a[f]))break;return a},makeArray:function(a,b){b=b||[];null!=a&&(c(Object(a))?g.merge(b,"string"===typeof a?[a]:a):Wb.call(b,a));return b},inArray:function(a,b,e){return null==b?-1:Fb.call(b,a,e)},merge:function(a,b){for(var e=+b.length,f=0,l=a.length;f<e;f++)a[l++]=b[f];a.length=l;return a},grep:function(a,b,e){for(var f=
[],l=0,r=a.length,v=!e;l<r;l++)e=!b(a[l],l),e!==v&&f.push(a[l]);return f},map:function(a,b,e){var f,l=0,r=[];if(c(a))for(f=a.length;l<f;l++){var v=b(a[l],l,e);null!=v&&r.push(v)}else for(l in a)v=b(a[l],l,e),null!=v&&r.push(v);return ic(r)},guid:1,support:na});"function"===typeof Symbol&&(g.fn[Symbol.iterator]=bb[Symbol.iterator]);g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){Eb["[object "+b+"]"]=b.toLowerCase()});var ob=function(a){function b(u,
A,w,E){var H,L,P,U,K=A&&A.ownerDocument;var S=A?A.nodeType:9;w=w||[];if("string"!==typeof u||!u||1!==S&&9!==S&&11!==S)return w;if(!E&&(lb(A),A=A||aa,za)){if(11!==S&&(U=cd.exec(u)))if(H=U[1])if(9===S)if(L=A.getElementById(H)){if(L.id===H)return w.push(L),w}else return w;else{if(K&&(L=K.getElementById(H))&&xb(A,L)&&L.id===H)return w.push(L),w}else{if(U[2])return ib.apply(w,A.getElementsByTagName(u)),w;if((H=U[3])&&ua.getElementsByClassName&&A.getElementsByClassName)return ib.apply(w,A.getElementsByClassName(H)),
w}if(!(!ua.qsa||Kb[u+" "]||Aa&&Aa.test(u)||1===S&&"object"===A.nodeName.toLowerCase())){H=u;K=A;if(1===S&&(dd.test(u)||rc.test(u))){K=Xb.test(u)&&M(A.parentNode)||A;K===A&&ua.scope||((P=A.getAttribute("id"))?P=P.replace(sc,tc):A.setAttribute("id",P=va));H=Lb(u);for(S=H.length;S--;)H[S]=(P?"#"+P:":scope")+" "+pa(H[S]);H=H.join(",")}try{return ib.apply(w,K.querySelectorAll(H)),w}catch(da){Kb(u,!0)}finally{P===va&&A.removeAttribute("id")}}}return ed(u.replace(Mb,"$1"),A,w,E)}function e(){function u(w,
E){A.push(w+" ")>ma.cacheLength&&delete u[A.shift()];return u[w+" "]=E}var A=[];return u}function f(u){u[va]=!0;return u}function l(u){var A=aa.createElement("fieldset");try{return!!u(A)}catch(w){return!1}finally{A.parentNode&&A.parentNode.removeChild(A)}}function r(u,A){u=u.split("|");for(var w=u.length;w--;)ma.attrHandle[u[w]]=A}function v(u,A){var w=A&&u,E=w&&1===u.nodeType&&1===A.nodeType&&u.sourceIndex-A.sourceIndex;if(E)return E;if(w)for(;w=w.nextSibling;)if(w===A)return-1;return u?1:-1}function C(u){return function(A){return"input"===
A.nodeName.toLowerCase()&&A.type===u}}function z(u){return function(A){var w=A.nodeName.toLowerCase();return("input"===w||"button"===w)&&A.type===u}}function B(u){return function(A){return"form"in A?A.parentNode&&!1===A.disabled?"label"in A?"label"in A.parentNode?A.parentNode.disabled===u:A.disabled===u:A.isDisabled===u||A.isDisabled!==!u&&fd(A)===u:A.disabled===u:"label"in A?A.disabled===u:!1}}function G(u){return f(function(A){A=+A;return f(function(w,E){for(var H,L=u([],w.length,A),P=L.length;P--;)w[H=
L[P]]&&(w[H]=!(E[H]=w[H]))})})}function M(u){return u&&"undefined"!==typeof u.getElementsByTagName&&u}function Q(){}function pa(u){for(var A=0,w=u.length,E="";A<w;A++)E+=u[A].value;return E}function Y(u,A,w){var E=A.dir,H=A.next,L=H||E,P=w&&"parentNode"===L,U=gd++;return A.first?function(K,S,da){for(;K=K[E];)if(1===K.nodeType||P)return u(K,S,da);return!1}:function(K,S,da){var V,qa=[cb,U];if(da)for(;K=K[E];){if((1===K.nodeType||P)&&u(K,S,da))return!0}else for(;K=K[E];)if(1===K.nodeType||P){var xa=
K[va]||(K[va]={});xa=xa[K.uniqueID]||(xa[K.uniqueID]={});if(H&&H===K.nodeName.toLowerCase())K=K[E]||K;else{if((V=xa[L])&&V[0]===cb&&V[1]===U)return qa[2]=V[2];xa[L]=qa;if(qa[2]=u(K,S,da))return!0}}return!1}}function Ha(u){return 1<u.length?function(A,w,E){for(var H=u.length;H--;)if(!u[H](A,w,E))return!1;return!0}:u[0]}function Ia(u,A,w,E,H){for(var L,P=[],U=0,K=u.length,S=null!=A;U<K;U++)if(L=u[U])if(!w||w(L,E,H))P.push(L),S&&A.push(U);return P}function Wa(u,A,w,E,H,L){E&&!E[va]&&(E=Wa(E));H&&!H[va]&&
(H=Wa(H,L));return f(function(P,U,K,S){var da,V=[],qa=[],xa=U.length,Fa;if(!(Fa=P)){Fa=A||"*";for(var Z=K.nodeType?[K]:K,$a=[],Ba=0,Nb=Z.length;Ba<Nb;Ba++)b(Fa,Z[Ba],$a);Fa=$a}Fa=!u||!P&&A?Fa:Ia(Fa,V,u,K,S);Z=w?H||(P?u:xa||E)?[]:U:Fa;w&&w(Fa,Z,K,S);if(E){var Xa=Ia(Z,qa);E(Xa,[],K,S);for(K=Xa.length;K--;)if(da=Xa[K])Z[qa[K]]=!(Fa[qa[K]]=da)}if(P){if(H||u){if(H){Xa=[];for(K=Z.length;K--;)(da=Z[K])&&Xa.push(Fa[K]=da);H(null,Z=[],Xa,S)}for(K=Z.length;K--;)(da=Z[K])&&-1<(Xa=H?mb(P,da):V[K])&&(P[Xa]=!(U[Xa]=
da))}}else Z=Ia(Z===U?Z.splice(xa,Z.length):Z),H?H(null,U,Z,S):ib.apply(U,Z)})}function X(u){var A,w,E=u.length,H=ma.relative[u[0].type];var L=H||ma.relative[" "];for(var P=H?1:0,U=Y(function(da){return da===A},L,!0),K=Y(function(da){return-1<mb(A,da)},L,!0),S=[function(da,V,qa){da=!H&&(qa||V!==ea)||((A=V).nodeType?U(da,V,qa):K(da,V,qa));A=null;return da}];P<E;P++)if(L=ma.relative[u[P].type])S=[Y(Ha(S),L)];else{L=ma.filter[u[P].type].apply(null,u[P].matches);if(L[va]){for(w=++P;w<E&&!ma.relative[u[w].type];w++);
return Wa(1<P&&Ha(S),1<P&&pa(u.slice(0,P-1).concat({value:" "===u[P-2].type?"*":""})).replace(Mb,"$1"),L,P<w&&X(u.slice(P,w)),w<E&&X(u=u.slice(w)),w<E&&pa(u))}S.push(L)}return Ha(S)}function Ga(u,A){var w=0<A.length,E=0<u.length,H=function(L,P,U,K,S){var da,V,qa=0,xa="0",Fa=L&&[],Z=[],$a=ea,Ba=L||E&&ma.find.TAG("*",S),Nb=cb+=null==$a?1:Math.random()||.1,Xa=Ba.length;for(S&&(ea=P==aa||P||S);xa!==Xa&&null!=(da=Ba[xa]);xa++){if(E&&da){var Yb=0;P||da.ownerDocument==aa||(lb(da),U=!za);for(;V=u[Yb++];)if(V(da,
P||aa,U)){K.push(da);break}S&&(cb=Nb)}w&&((da=!V&&da)&&qa--,L&&Fa.push(da))}qa+=xa;if(w&&xa!==qa){for(Yb=0;V=A[Yb++];)V(Fa,Z,P,U);if(L){if(0<qa)for(;xa--;)Fa[xa]||Z[xa]||(Z[xa]=hd.call(K));Z=Ia(Z)}ib.apply(K,Z);S&&!L&&0<Z.length&&1<qa+A.length&&b.uniqueSort(K)}S&&(cb=Nb,ea=$a);return Fa};return w?f(H):H}var Ja,ea,ra,Pa,aa,Da,za,Aa,Sa,Ob,xb,va="sizzle"+1*new Date,Ya=a.document,cb=0,gd=0,uc=e(),vc=e(),wc=e(),Kb=e(),Zb=function(u,A){u===A&&(Pa=!0);return 0},id={}.hasOwnProperty,nb=[],hd=nb.pop,jd=nb.push,
ib=nb.push,xc=nb.slice,mb=function(u,A){for(var w=0,E=u.length;w<E;w++)if(u[w]===A)return w;return-1},kd=/[\x20\t\r\n\f]+/g,Mb=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,ld=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,rc=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,dd=/[\x20\t\r\n\f]|>/,md=/:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
nd=/^(?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+$/,Pb={ID:/^#((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,CLASS:/^\.((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,TAG:/^((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\]/,
PSEUDO:/^:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,
bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},od=/HTML$/i,pd=/^(?:input|select|textarea|button)$/i,qd=/^h\d$/i,yb=/^[^{]+\{\s*\[native \w/,cd=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Xb=/[+~]/,db=/\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\([^\r\n\f])/g,eb=function(u,A){u="0x"+u.slice(1)-
65536;return A?A:0>u?String.fromCharCode(u+65536):String.fromCharCode(u>>10|55296,u&1023|56320)},sc=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,tc=function(u,A){return A?"\x00"===u?"\ufffd":u.slice(0,-1)+"\\"+u.charCodeAt(u.length-1).toString(16)+" ":"\\"+u},yc=function(){lb()},fd=Y(function(u){return!0===u.disabled&&"fieldset"===u.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{ib.apply(nb=xc.call(Ya.childNodes),Ya.childNodes),nb[Ya.childNodes.length].nodeType}catch(u){ib=
{apply:nb.length?function(A,w){jd.apply(A,xc.call(w))}:function(A,w){for(var E=A.length,H=0;A[E++]=w[H++];);A.length=E-1}}}var ua=b.support={};var rd=b.isXML=function(u){var A=(u.ownerDocument||u).documentElement;return!od.test(u.namespaceURI||A&&A.nodeName||"HTML")};var lb=b.setDocument=function(u){var A;u=u?u.ownerDocument||u:Ya;if(u==aa||9!==u.nodeType||!u.documentElement)return aa;aa=u;Da=aa.documentElement;za=!rd(aa);Ya!=aa&&(A=aa.defaultView)&&A.top!==A&&(A.addEventListener?A.addEventListener("unload",
yc,!1):A.attachEvent&&A.attachEvent("onunload",yc));ua.scope=l(function(w){Da.appendChild(w).appendChild(aa.createElement("div"));return"undefined"!==typeof w.querySelectorAll&&!w.querySelectorAll(":scope fieldset div").length});ua.attributes=l(function(w){w.className="i";return!w.getAttribute("className")});ua.getElementsByTagName=l(function(w){w.appendChild(aa.createComment(""));return!w.getElementsByTagName("*").length});ua.getElementsByClassName=yb.test(aa.getElementsByClassName);ua.getById=l(function(w){Da.appendChild(w).id=
va;return!aa.getElementsByName||!aa.getElementsByName(va).length});ua.getById?(ma.filter.ID=function(w){var E=w.replace(db,eb);return function(H){return H.getAttribute("id")===E}},ma.find.ID=function(w,E){if("undefined"!==typeof E.getElementById&&za)return(w=E.getElementById(w))?[w]:[]}):(ma.filter.ID=function(w){var E=w.replace(db,eb);return function(H){return(H="undefined"!==typeof H.getAttributeNode&&H.getAttributeNode("id"))&&H.value===E}},ma.find.ID=function(w,E){if("undefined"!==typeof E.getElementById&&
za){var H,L=E.getElementById(w);if(L){if((H=L.getAttributeNode("id"))&&H.value===w)return[L];var P=E.getElementsByName(w);for(E=0;L=P[E++];)if((H=L.getAttributeNode("id"))&&H.value===w)return[L]}return[]}});ma.find.TAG=ua.getElementsByTagName?function(w,E){if("undefined"!==typeof E.getElementsByTagName)return E.getElementsByTagName(w);if(ua.qsa)return E.querySelectorAll(w)}:function(w,E){var H=[],L=0;E=E.getElementsByTagName(w);if("*"===w){for(;w=E[L++];)1===w.nodeType&&H.push(w);return H}return E};
ma.find.CLASS=ua.getElementsByClassName&&function(w,E){if("undefined"!==typeof E.getElementsByClassName&&za)return E.getElementsByClassName(w)};Sa=[];Aa=[];if(ua.qsa=yb.test(aa.querySelectorAll))l(function(w){Da.appendChild(w).innerHTML="\x3ca id\x3d'"+va+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+va+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";w.querySelectorAll("[msallowcapture^\x3d'']").length&&Aa.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");w.querySelectorAll("[selected]").length||
Aa.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");w.querySelectorAll("[id~\x3d"+va+"-]").length||Aa.push("~\x3d");var E=aa.createElement("input");E.setAttribute("name","");w.appendChild(E);w.querySelectorAll("[name\x3d'']").length||Aa.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");w.querySelectorAll(":checked").length||Aa.push(":checked");
w.querySelectorAll("a#"+va+"+*").length||Aa.push(".#.+[+~]");w.querySelectorAll("\\\f");Aa.push("[\\r\\n\\f]")}),l(function(w){w.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";var E=aa.createElement("input");E.setAttribute("type","hidden");w.appendChild(E).setAttribute("name","D");w.querySelectorAll("[name\x3dd]").length&&Aa.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==w.querySelectorAll(":enabled").length&&
Aa.push(":enabled",":disabled");Da.appendChild(w).disabled=!0;2!==w.querySelectorAll(":disabled").length&&Aa.push(":enabled",":disabled");w.querySelectorAll("*,:x");Aa.push(",.*:")});(ua.matchesSelector=yb.test(Ob=Da.matches||Da.webkitMatchesSelector||Da.mozMatchesSelector||Da.oMatchesSelector||Da.msMatchesSelector))&&l(function(w){ua.disconnectedMatch=Ob.call(w,"*");Ob.call(w,"[s!\x3d'']:x");Sa.push("!\x3d",":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")});
Aa=Aa.length&&new RegExp(Aa.join("|"));Sa=Sa.length&&new RegExp(Sa.join("|"));xb=(A=yb.test(Da.compareDocumentPosition))||yb.test(Da.contains)?function(w,E){var H=9===w.nodeType?w.documentElement:w;E=E&&E.parentNode;return w===E||!!(E&&1===E.nodeType&&(H.contains?H.contains(E):w.compareDocumentPosition&&w.compareDocumentPosition(E)&16))}:function(w,E){if(E)for(;E=E.parentNode;)if(E===w)return!0;return!1};Zb=A?function(w,E){if(w===E)return Pa=!0,0;var H=!w.compareDocumentPosition-!E.compareDocumentPosition;
if(H)return H;H=(w.ownerDocument||w)==(E.ownerDocument||E)?w.compareDocumentPosition(E):1;return H&1||!ua.sortDetached&&E.compareDocumentPosition(w)===H?w==aa||w.ownerDocument==Ya&&xb(Ya,w)?-1:E==aa||E.ownerDocument==Ya&&xb(Ya,E)?1:ra?mb(ra,w)-mb(ra,E):0:H&4?-1:1}:function(w,E){if(w===E)return Pa=!0,0;var H=0,L=w.parentNode,P=E.parentNode,U=[w],K=[E];if(!L||!P)return w==aa?-1:E==aa?1:L?-1:P?1:ra?mb(ra,w)-mb(ra,E):0;if(L===P)return v(w,E);for(;w=w.parentNode;)U.unshift(w);for(w=E;w=w.parentNode;)K.unshift(w);
for(;U[H]===K[H];)H++;return H?v(U[H],K[H]):U[H]==Ya?-1:K[H]==Ya?1:0};return aa};b.matches=function(u,A){return b(u,null,null,A)};b.matchesSelector=function(u,A){lb(u);if(!(!ua.matchesSelector||!za||Kb[A+" "]||Sa&&Sa.test(A)||Aa&&Aa.test(A)))try{var w=Ob.call(u,A);if(w||ua.disconnectedMatch||u.document&&11!==u.document.nodeType)return w}catch(E){Kb(A,!0)}return 0<b(A,aa,null,[u]).length};b.contains=function(u,A){(u.ownerDocument||u)!=aa&&lb(u);return xb(u,A)};b.attr=function(u,A){(u.ownerDocument||
u)!=aa&&lb(u);var w=ma.attrHandle[A.toLowerCase()];w=w&&id.call(ma.attrHandle,A.toLowerCase())?w(u,A,!za):void 0;return void 0!==w?w:ua.attributes||!za?u.getAttribute(A):(w=u.getAttributeNode(A))&&w.specified?w.value:null};b.escape=function(u){return(u+"").replace(sc,tc)};b.error=function(u){throw Error("Syntax error, unrecognized expression: "+u);};b.uniqueSort=function(u){var A,w=[],E=0,H=0;Pa=!ua.detectDuplicates;ra=!ua.sortStable&&u.slice(0);u.sort(Zb);if(Pa){for(;A=u[H++];)A===u[H]&&(E=w.push(H));
for(;E--;)u.splice(w[E],1)}ra=null;return u};var $b=b.getText=function(u){var A="",w=0;var E=u.nodeType;if(!E)for(;E=u[w++];)A+=$b(E);else if(1===E||9===E||11===E){if("string"===typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)A+=$b(u)}else if(3===E||4===E)return u.nodeValue;return A};var ma=b.selectors={cacheLength:50,createPseudo:f,match:Pb,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},
"~":{dir:"previousSibling"}},preFilter:{ATTR:function(u){u[1]=u[1].replace(db,eb);u[3]=(u[3]||u[4]||u[5]||"").replace(db,eb);"~\x3d"===u[2]&&(u[3]=" "+u[3]+" ");return u.slice(0,4)},CHILD:function(u){u[1]=u[1].toLowerCase();"nth"===u[1].slice(0,3)?(u[3]||b.error(u[0]),u[4]=+(u[4]?u[5]+(u[6]||1):2*("even"===u[3]||"odd"===u[3])),u[5]=+(u[7]+u[8]||"odd"===u[3])):u[3]&&b.error(u[0]);return u},PSEUDO:function(u){var A,w=!u[6]&&u[2];if(Pb.CHILD.test(u[0]))return null;u[3]?u[2]=u[4]||u[5]||"":w&&md.test(w)&&
(A=Lb(w,!0))&&(A=w.indexOf(")",w.length-A)-w.length)&&(u[0]=u[0].slice(0,A),u[2]=w.slice(0,A));return u.slice(0,3)}},filter:{TAG:function(u){var A=u.replace(db,eb).toLowerCase();return"*"===u?function(){return!0}:function(w){return w.nodeName&&w.nodeName.toLowerCase()===A}},CLASS:function(u){var A=uc[u+" "];return A||(A=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+u+"([\\x20\\t\\r\\n\\f]|$)"),uc(u,function(w){return A.test("string"===typeof w.className&&w.className||"undefined"!==typeof w.getAttribute&&w.getAttribute("class")||
"")}))},ATTR:function(u,A,w){return function(E){E=b.attr(E,u);if(null==E)return"!\x3d"===A;if(!A)return!0;E+="";return"\x3d"===A?E===w:"!\x3d"===A?E!==w:"^\x3d"===A?w&&0===E.indexOf(w):"*\x3d"===A?w&&-1<E.indexOf(w):"$\x3d"===A?w&&E.slice(-w.length)===w:"~\x3d"===A?-1<(" "+E.replace(kd," ")+" ").indexOf(w):"|\x3d"===A?E===w||E.slice(0,w.length+1)===w+"-":!1}},CHILD:function(u,A,w,E,H){var L="nth"!==u.slice(0,3),P="last"!==u.slice(-4),U="of-type"===A;return 1===E&&0===H?function(K){return!!K.parentNode}:
function(K,S,da){var V,qa;S=L!==P?"nextSibling":"previousSibling";var xa=K.parentNode,Fa=U&&K.nodeName.toLowerCase();da=!da&&!U;var Z=!1;if(xa){if(L){for(;S;){for(V=K;V=V[S];)if(U?V.nodeName.toLowerCase()===Fa:1===V.nodeType)return!1;var $a=S="only"===u&&!$a&&"nextSibling"}return!0}$a=[P?xa.firstChild:xa.lastChild];if(P&&da){V=xa;var Ba=V[va]||(V[va]={});Ba=Ba[V.uniqueID]||(Ba[V.uniqueID]={});Z=Ba[u]||[];Z=(qa=Z[0]===cb&&Z[1])&&Z[2];for(V=qa&&xa.childNodes[qa];V=++qa&&V&&V[S]||(Z=qa=0)||$a.pop();)if(1===
V.nodeType&&++Z&&V===K){Ba[u]=[cb,qa,Z];break}}else if(da&&(V=K,Ba=V[va]||(V[va]={}),Ba=Ba[V.uniqueID]||(Ba[V.uniqueID]={}),Z=Ba[u]||[],Z=qa=Z[0]===cb&&Z[1]),!1===Z)for(;(V=++qa&&V&&V[S]||(Z=qa=0)||$a.pop())&&((U?V.nodeName.toLowerCase()!==Fa:1!==V.nodeType)||!++Z||(da&&(Ba=V[va]||(V[va]={}),Ba=Ba[V.uniqueID]||(Ba[V.uniqueID]={}),Ba[u]=[cb,Z]),V!==K)););Z-=H;return Z===E||0===Z%E&&0<=Z/E}}},PSEUDO:function(u,A){var w=ma.pseudos[u]||ma.setFilters[u.toLowerCase()]||b.error("unsupported pseudo: "+u);
if(w[va])return w(A);if(1<w.length){var E=[u,u,"",A];return ma.setFilters.hasOwnProperty(u.toLowerCase())?f(function(H,L){for(var P,U=w(H,A),K=U.length;K--;)P=mb(H,U[K]),H[P]=!(L[P]=U[K])}):function(H){return w(H,0,E)}}return w}},pseudos:{not:f(function(u){var A=[],w=[],E=zc(u.replace(Mb,"$1"));return E[va]?f(function(H,L,P,U){U=E(H,null,U,[]);for(var K=H.length;K--;)if(P=U[K])H[K]=!(L[K]=P)}):function(H,L,P){A[0]=H;E(A,null,P,w);A[0]=null;return!w.pop()}}),has:f(function(u){return function(A){return 0<
b(u,A).length}}),contains:f(function(u){u=u.replace(db,eb);return function(A){return-1<(A.textContent||$b(A)).indexOf(u)}}),lang:f(function(u){nd.test(u||"")||b.error("unsupported lang: "+u);u=u.replace(db,eb).toLowerCase();return function(A){var w;do if(w=za?A.lang:A.getAttribute("xml:lang")||A.getAttribute("lang"))return w=w.toLowerCase(),w===u||0===w.indexOf(u+"-");while((A=A.parentNode)&&1===A.nodeType);return!1}}),target:function(u){var A=a.location&&a.location.hash;return A&&A.slice(1)===u.id},
root:function(u){return u===Da},focus:function(u){return u===aa.activeElement&&(!aa.hasFocus||aa.hasFocus())&&!!(u.type||u.href||~u.tabIndex)},enabled:B(!1),disabled:B(!0),checked:function(u){var A=u.nodeName.toLowerCase();return"input"===A&&!!u.checked||"option"===A&&!!u.selected},selected:function(u){u.parentNode&&u.parentNode.selectedIndex;return!0===u.selected},empty:function(u){for(u=u.firstChild;u;u=u.nextSibling)if(6>u.nodeType)return!1;return!0},parent:function(u){return!ma.pseudos.empty(u)},
header:function(u){return qd.test(u.nodeName)},input:function(u){return pd.test(u.nodeName)},button:function(u){var A=u.nodeName.toLowerCase();return"input"===A&&"button"===u.type||"button"===A},text:function(u){var A;return"input"===u.nodeName.toLowerCase()&&"text"===u.type&&(null==(A=u.getAttribute("type"))||"text"===A.toLowerCase())},first:G(function(){return[0]}),last:G(function(u,A){return[A-1]}),eq:G(function(u,A,w){return[0>w?w+A:w]}),even:G(function(u,A){for(var w=0;w<A;w+=2)u.push(w);return u}),
odd:G(function(u,A){for(var w=1;w<A;w+=2)u.push(w);return u}),lt:G(function(u,A,w){for(A=0>w?w+A:w>A?A:w;0<=--A;)u.push(A);return u}),gt:G(function(u,A,w){for(w=0>w?w+A:w;++w<A;)u.push(w);return u})}};ma.pseudos.nth=ma.pseudos.eq;for(Ja in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})ma.pseudos[Ja]=C(Ja);for(Ja in{submit:!0,reset:!0})ma.pseudos[Ja]=z(Ja);Q.prototype=ma.filters=ma.pseudos;ma.setFilters=new Q;var Lb=b.tokenize=function(u,A){var w,E,H,L,P;if(L=vc[u+" "])return A?0:L.slice(0);L=
u;var U=[];for(P=ma.preFilter;L;){if(!K||(w=ld.exec(L)))w&&(L=L.slice(w[0].length)||L),U.push(E=[]);var K=!1;if(w=rc.exec(L))K=w.shift(),E.push({value:K,type:w[0].replace(Mb," ")}),L=L.slice(K.length);for(H in ma.filter)!(w=Pb[H].exec(L))||P[H]&&!(w=P[H](w))||(K=w.shift(),E.push({value:K,type:H,matches:w}),L=L.slice(K.length));if(!K)break}return A?L.length:L?b.error(u):vc(u,U).slice(0)};var zc=b.compile=function(u,A){var w,E=[],H=[],L=wc[u+" "];if(!L){A||(A=Lb(u));for(w=A.length;w--;)L=X(A[w]),L[va]?
E.push(L):H.push(L);L=wc(u,Ga(H,E));L.selector=u}return L};var ed=b.select=function(u,A,w,E){var H,L,P,U="function"===typeof u&&u,K=!E&&Lb(u=U.selector||u);w=w||[];if(1===K.length){var S=K[0]=K[0].slice(0);if(2<S.length&&"ID"===(L=S[0]).type&&9===A.nodeType&&za&&ma.relative[S[1].type]){A=(ma.find.ID(L.matches[0].replace(db,eb),A)||[])[0];if(!A)return w;U&&(A=A.parentNode);u=u.slice(S.shift().value.length)}for(H=Pb.needsContext.test(u)?0:S.length;H--;){L=S[H];if(ma.relative[P=L.type])break;if(P=ma.find[P])if(E=
P(L.matches[0].replace(db,eb),Xb.test(S[0].type)&&M(A.parentNode)||A)){S.splice(H,1);u=E.length&&pa(S);if(!u)return ib.apply(w,E),w;break}}}(U||zc(u,K))(E,A,!za,w,!A||Xb.test(u)&&M(A.parentNode)||A);return w};ua.sortStable=va.split("").sort(Zb).join("")===va;ua.detectDuplicates=!!Pa;lb();ua.sortDetached=l(function(u){return u.compareDocumentPosition(aa.createElement("fieldset"))&1});l(function(u){u.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e";return"#"===u.firstChild.getAttribute("href")})||r("type|href|height|width",
function(u,A,w){if(!w)return u.getAttribute(A,"type"===A.toLowerCase()?1:2)});ua.attributes&&l(function(u){u.innerHTML="\x3cinput/\x3e";u.firstChild.setAttribute("value","");return""===u.firstChild.getAttribute("value")})||r("value",function(u,A,w){if(!w&&"input"===u.nodeName.toLowerCase())return u.defaultValue});l(function(u){return null==u.getAttribute("disabled")})||r("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(u,
A,w){var E;if(!w)return!0===u[A]?A.toLowerCase():(E=u.getAttributeNode(A))&&E.specified?E.value:null});return b}(m);g.find=ob;g.expr=ob.selectors;g.expr[":"]=g.expr.pseudos;g.uniqueSort=g.unique=ob.uniqueSort;g.text=ob.getText;g.isXMLDoc=ob.isXML;g.contains=ob.contains;g.escapeSelector=ob.escape;var ub=function(a,b,e){for(var f=[],l=void 0!==e;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(l&&g(a).is(e))break;f.push(a)}return f},Ac=function(a,b){for(var e=[];a;a=a.nextSibling)1===a.nodeType&&a!==
b&&e.push(a);return e},Bc=g.expr.match.needsContext,Cc=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;g.filter=function(a,b,e){var f=b[0];e&&(a=":not("+a+")");return 1===b.length&&1===f.nodeType?g.find.matchesSelector(f,a)?[f]:[]:g.find.matches(a,g.grep(b,function(l){return 1===l.nodeType}))};g.fn.extend({find:function(a){var b,e=this.length,f=this;if("string"!==typeof a)return this.pushStack(g(a).filter(function(){for(b=0;b<e;b++)if(g.contains(f[b],this))return!0}));var l=this.pushStack([]);
for(b=0;b<e;b++)g.find(a,f[b],l);return 1<e?g.uniqueSort(l):l},filter:function(a){return this.pushStack(k(this,a||[],!1))},not:function(a){return this.pushStack(k(this,a||[],!0))},is:function(a){return!!k(this,"string"===typeof a&&Bc.test(a)?g(a):a||[],!1).length}});var sd=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(g.fn.init=function(a,b,e){if(!a)return this;e=e||td;if("string"===typeof a){var f="\x3c"===a[0]&&"\x3e"===a[a.length-1]&&3<=a.length?[null,a,null]:sd.exec(a);if(!f||!f[1]&&b)return!b||b.jquery?
(b||e).find(a):this.constructor(b).find(a);if(f[1]){if(b=b instanceof g?b[0]:b,g.merge(this,g.parseHTML(f[1],b&&b.nodeType?b.ownerDocument||b:ia,!0)),Cc.test(f[1])&&g.isPlainObject(b))for(f in b)if(ba(this[f]))this[f](b[f]);else this.attr(f,b[f])}else if(a=ia.getElementById(f[2]))this[0]=a,this.length=1;return this}return a.nodeType?(this[0]=a,this.length=1,this):ba(a)?void 0!==e.ready?e.ready(a):a(g):g.makeArray(a,this)}).prototype=g.fn;var td=g(ia);var ud=/^(?:parents|prev(?:Until|All))/,vd={children:!0,
contents:!0,next:!0,prev:!0};g.fn.extend({has:function(a){var b=g(a,this),e=b.length;return this.filter(function(){for(var f=0;f<e;f++)if(g.contains(this,b[f]))return!0})},closest:function(a,b){var e,f=0,l=this.length,r=[],v="string"!==typeof a&&g(a);if(!Bc.test(a))for(;f<l;f++)for(e=this[f];e&&e!==b;e=e.parentNode)if(11>e.nodeType&&(v?-1<v.index(e):1===e.nodeType&&g.find.matchesSelector(e,a))){r.push(e);break}return this.pushStack(1<r.length?g.uniqueSort(r):r)},index:function(a){return a?"string"===
typeof a?Fb.call(g(a),this[0]):Fb.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});g.each({parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},parents:function(a){return ub(a,"parentNode")},parentsUntil:function(a,b,e){return ub(a,"parentNode",e)},next:function(a){return p(a,
"nextSibling")},prev:function(a){return p(a,"previousSibling")},nextAll:function(a){return ub(a,"nextSibling")},prevAll:function(a){return ub(a,"previousSibling")},nextUntil:function(a,b,e){return ub(a,"nextSibling",e)},prevUntil:function(a,b,e){return ub(a,"previousSibling",e)},siblings:function(a){return Ac((a.parentNode||{}).firstChild,a)},children:function(a){return Ac(a.firstChild)},contents:function(a){if(null!=a.contentDocument&&pc(a.contentDocument))return a.contentDocument;h(a,"template")&&
(a=a.content||a);return g.merge([],a.childNodes)}},function(a,b){g.fn[a]=function(e,f){var l=g.map(this,b,e);"Until"!==a.slice(-5)&&(f=e);f&&"string"===typeof f&&(l=g.filter(f,l));1<this.length&&(vd[a]||g.uniqueSort(l),ud.test(a)&&l.reverse());return this.pushStack(l)}});var Za=/[^\x20\t\r\n\f]+/g;g.Callbacks=function(a){a="string"===typeof a?q(a):g.extend({},a);var b,e,f,l,r=[],v=[],C=-1,z=function(){l=l||a.once;for(f=b=!0;v.length;C=-1)for(e=v.shift();++C<r.length;)!1===r[C].apply(e[0],e[1])&&a.stopOnFalse&&
(C=r.length,e=!1);a.memory||(e=!1);b=!1;l&&(r=e?[]:"")},B={add:function(){r&&(e&&!b&&(C=r.length-1,v.push(e)),function Q(M){g.each(M,function(pa,Y){ba(Y)?a.unique&&B.has(Y)||r.push(Y):Y&&Y.length&&"string"!==d(Y)&&Q(Y)})}(arguments),e&&!b&&z());return this},remove:function(){g.each(arguments,function(G,M){for(var Q;-1<(Q=g.inArray(M,r,Q));)r.splice(Q,1),Q<=C&&C--});return this},has:function(G){return G?-1<g.inArray(G,r):0<r.length},empty:function(){r&&(r=[]);return this},disable:function(){l=v=[];
r=e="";return this},disabled:function(){return!r},lock:function(){l=v=[];e||b||(r=e="");return this},locked:function(){return!!l},fireWith:function(G,M){l||(M=M||[],M=[G,M.slice?M.slice():M],v.push(M),b||z());return this},fire:function(){B.fireWith(this,arguments);return this},fired:function(){return!!f}};return B};g.extend({Deferred:function(a){var b=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],
["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){l.done(arguments).fail(arguments);return this},"catch":function(r){return f.then(null,r)},pipe:function(){var r=arguments;return g.Deferred(function(v){g.each(b,function(C,z){var B=ba(r[z[4]])&&r[z[4]];l[z[1]](function(){var G=B&&B.apply(this,arguments);if(G&&ba(G.promise))G.promise().progress(v.notify).done(v.resolve).fail(v.reject);else v[z[0]+"With"](this,
B?[G]:arguments)})});r=null}).promise()},then:function(r,v,C){function z(G,M,Q,pa){return function(){var Y=this,Ha=arguments,Ia=function(){if(!(G<B)){var X=Q.apply(Y,Ha);if(X===M.promise())throw new TypeError("Thenable self-resolution");var Ga=X&&("object"===typeof X||"function"===typeof X)&&X.then;ba(Ga)?pa?Ga.call(X,z(B,M,y,pa),z(B,M,x,pa)):(B++,Ga.call(X,z(B,M,y,pa),z(B,M,x,pa),z(B,M,y,M.notifyWith))):(Q!==y&&(Y=void 0,Ha=[X]),(pa||M.resolveWith)(Y,Ha))}},Wa=pa?Ia:function(){try{Ia()}catch(X){g.Deferred.exceptionHook&&
g.Deferred.exceptionHook(X,Wa.stackTrace),G+1>=B&&(Q!==x&&(Y=void 0,Ha=[X]),M.rejectWith(Y,Ha))}};G?Wa():(g.Deferred.getStackHook&&(Wa.stackTrace=g.Deferred.getStackHook()),m.setTimeout(Wa))}}var B=0;return g.Deferred(function(G){b[0][3].add(z(0,G,ba(C)?C:y,G.notifyWith));b[1][3].add(z(0,G,ba(r)?r:y));b[2][3].add(z(0,G,ba(v)?v:x))}).promise()},promise:function(r){return null!=r?g.extend(r,f):f}},l={};g.each(b,function(r,v){var C=v[2],z=v[5];f[v[1]]=C.add;z&&C.add(function(){e=z},b[3-r][2].disable,
b[3-r][3].disable,b[0][2].lock,b[0][3].lock);C.add(v[3].fire);l[v[0]]=function(){l[v[0]+"With"](this===l?void 0:this,arguments);return this};l[v[0]+"With"]=C.fireWith});f.promise(l);a&&a.call(l,l);return l},when:function(a){var b=arguments.length,e=b,f=Array(e),l=gb.call(arguments),r=g.Deferred(),v=function(C){return function(z){f[C]=this;l[C]=1<arguments.length?gb.call(arguments):z;--b||r.resolveWith(f,l)}};if(1>=b&&(D(a,r.done(v(e)).resolve,r.reject,!b),"pending"===r.state()||ba(l[e]&&l[e].then)))return r.then();
for(;e--;)D(l[e],v(e),r.reject);return r.promise()}});var wd=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(a,b){m.console&&m.console.warn&&a&&wd.test(a.name)&&m.console.warn("jQuery.Deferred exception: "+a.message,a.stack,b)};g.readyException=function(a){m.setTimeout(function(){throw a;})};var ac=g.Deferred();g.fn.ready=function(a){ac.then(a).catch(function(b){g.readyException(b)});return this};g.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a?
--g.readyWait:g.isReady)||(g.isReady=!0,!0!==a&&0<--g.readyWait||ac.resolveWith(ia,[g]))}});g.ready.then=ac.then;"complete"===ia.readyState||"loading"!==ia.readyState&&!ia.documentElement.doScroll?m.setTimeout(g.ready):(ia.addEventListener("DOMContentLoaded",F),m.addEventListener("load",F));var fb=function(a,b,e,f,l,r,v){var C=0,z=a.length,B=null==e;if("object"===d(e))for(C in l=!0,e)fb(a,b,C,e[C],!0,r,v);else if(void 0!==f&&(l=!0,ba(f)||(v=!0),B&&(v?(b.call(a,f),b=null):(B=b,b=function(G,M,Q){return B.call(g(G),
Q)})),b))for(;C<z;C++)b(a[C],e,v?f:f.call(a[C],C,b(a[C],e)));return l?a:B?b.call(a):z?b(a[0],e):r},Qc=/^-ms-/,Rc=/-([a-z])/g,zb=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};O.uid=1;O.prototype={cache:function(a){var b=a[this.expando];b||(b={},zb(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0})));return b},set:function(a,b,e){var f;a=this.cache(a);if("string"===typeof b)a[I(b)]=e;else for(f in b)a[I(f)]=b[f];return a},get:function(a,
b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][I(b)]},access:function(a,b,e){if(void 0===b||b&&"string"===typeof b&&void 0===e)return this.get(a,b);this.set(a,b,e);return void 0!==e?e:b},remove:function(a,b){var e,f=a[this.expando];if(void 0!==f){if(void 0!==b)for(Array.isArray(b)?b=b.map(I):(b=I(b),b=b in f?[b]:b.match(Za)||[]),e=b.length;e--;)delete f[b[e]];if(void 0===b||g.isEmptyObject(f))a.nodeType?a[this.expando]=void 0:delete a[this.expando]}},hasData:function(a){a=a[this.expando];
return void 0!==a&&!g.isEmptyObject(a)}};var T=new O,Na=new O,Tc=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Sc=/[A-Z]/g;g.extend({hasData:function(a){return Na.hasData(a)||T.hasData(a)},data:function(a,b,e){return Na.access(a,b,e)},removeData:function(a,b){Na.remove(a,b)},_data:function(a,b,e){return T.access(a,b,e)},_removeData:function(a,b){T.remove(a,b)}});g.fn.extend({data:function(a,b){var e,f=this[0],l=f&&f.attributes;if(void 0===a){if(this.length){var r=Na.get(f);if(1===f.nodeType&&!T.get(f,"hasDataAttrs")){for(e=
l.length;e--;)if(l[e]){var v=l[e].name;0===v.indexOf("data-")&&(v=I(v.slice(5)),ja(f,v,r[v]))}T.set(f,"hasDataAttrs",!0)}}return r}return"object"===typeof a?this.each(function(){Na.set(this,a)}):fb(this,function(C){if(f&&void 0===C){var z=Na.get(f,a);if(void 0!==z)return z;z=ja(f,a);if(void 0!==z)return z}else this.each(function(){Na.set(this,a,C)})},null,b,1<arguments.length,null,!0)},removeData:function(a){return this.each(function(){Na.remove(this,a)})}});g.extend({queue:function(a,b,e){if(a){b=
(b||"fx")+"queue";var f=T.get(a,b);e&&(!f||Array.isArray(e)?f=T.access(a,b,g.makeArray(e)):f.push(e));return f||[]}},dequeue:function(a,b){b=b||"fx";var e=g.queue(a,b),f=e.length,l=e.shift(),r=g._queueHooks(a,b),v=function(){g.dequeue(a,b)};"inprogress"===l&&(l=e.shift(),f--);l&&("fx"===b&&e.unshift("inprogress"),delete r.stop,l.call(a,v,r));!f&&r&&r.empty.fire()},_queueHooks:function(a,b){var e=b+"queueHooks";return T.get(a,e)||T.access(a,e,{empty:g.Callbacks("once memory").add(function(){T.remove(a,
[b+"queue",e])})})}});g.fn.extend({queue:function(a,b){var e=2;"string"!==typeof a&&(b=a,a="fx",e--);return arguments.length<e?g.queue(this[0],a):void 0===b?this:this.each(function(){var f=g.queue(this,a,b);g._queueHooks(this,a);"fx"===a&&"inprogress"!==f[0]&&g.dequeue(this,a)})},dequeue:function(a){return this.each(function(){g.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var e,f=1,l=g.Deferred(),r=this,v=this.length,C=function(){--f||l.resolveWith(r,
[r])};"string"!==typeof a&&(b=a,a=void 0);for(a=a||"fx";v--;)(e=T.get(r[v],a+"queueHooks"))&&e.empty&&(f++,e.empty.add(C));C();return l.promise(b)}});var Dc=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vb=new RegExp("^(?:([+-])\x3d|)("+Dc+")([a-z%]*)$","i"),ab=["Top","Right","Bottom","Left"],pb=ia.documentElement,rb=function(a){return g.contains(a.ownerDocument,a)},xd={composed:!0};pb.getRootNode&&(rb=function(a){return g.contains(a.ownerDocument,a)||a.getRootNode(xd)===a.ownerDocument});var Gb=function(a,
b){a=b||a;return"none"===a.style.display||""===a.style.display&&rb(a)&&"none"===g.css(a,"display")},fc={};g.fn.extend({show:function(){return W(this,!0)},hide:function(){return W(this)},toggle:function(a){return"boolean"===typeof a?a?this.show():this.hide():this.each(function(){Gb(this)?g(this).show():g(this).hide()})}});var Ab=/^(?:checkbox|radio)$/i,gc=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,hc=/^$|^module$|\/(?:java|ecma)script/i;(function(){var a=ia.createDocumentFragment().appendChild(ia.createElement("div")),
b=ia.createElement("input");b.setAttribute("type","radio");b.setAttribute("checked","checked");b.setAttribute("name","t");a.appendChild(b);na.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";na.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue;a.innerHTML="\x3coption\x3e\x3c/option\x3e";na.option=!!a.lastChild})();var Qa={thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"],
tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};Qa.tbody=Qa.tfoot=Qa.colgroup=Qa.caption=Qa.thead;Qa.th=Qa.td;na.option||(Qa.optgroup=Qa.option=[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"]);var Uc=/<|&#?\w+;/,yd=/^key/,zd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ec=/^([^.]*)(?:\.(.+)|)/;g.event={global:{},add:function(a,b,e,f,l){var r,v,C,z;var B=
T.get(a);if(zb(a)){if(e.handler){var G=e;e=G.handler;l=G.selector}l&&g.find.matchesSelector(pb,l);e.guid||(e.guid=g.guid++);(v=B.events)||(v=B.events=Object.create(null));(r=B.handle)||(r=B.handle=function(Y){return"undefined"!==typeof g&&g.event.triggered!==Y.type?g.event.dispatch.apply(a,arguments):void 0});b=(b||"").match(Za)||[""];for(B=b.length;B--;){var M=Ec.exec(b[B])||[];var Q=C=M[1];var pa=(M[2]||"").split(".").sort();Q&&(M=g.event.special[Q]||{},Q=(l?M.delegateType:M.bindType)||Q,M=g.event.special[Q]||
{},C=g.extend({type:Q,origType:C,data:f,handler:e,guid:e.guid,selector:l,needsContext:l&&g.expr.match.needsContext.test(l),namespace:pa.join(".")},G),(z=v[Q])||(z=v[Q]=[],z.delegateCount=0,M.setup&&!1!==M.setup.call(a,f,pa,r)||a.addEventListener&&a.addEventListener(Q,r)),M.add&&(M.add.call(a,C),C.handler.guid||(C.handler.guid=e.guid)),l?z.splice(z.delegateCount++,0,C):z.push(C),g.event.global[Q]=!0)}}},remove:function(a,b,e,f,l){var r,v,C,z,B,G=T.hasData(a)&&T.get(a);if(G&&(C=G.events)){b=(b||"").match(Za)||
[""];for(z=b.length;z--;){var M=Ec.exec(b[z])||[];var Q=B=M[1];var pa=(M[2]||"").split(".").sort();if(Q){var Y=g.event.special[Q]||{};Q=(f?Y.delegateType:Y.bindType)||Q;var Ha=C[Q]||[];M=M[2]&&new RegExp("(^|\\.)"+pa.join("\\.(?:.*\\.|)")+"(\\.|$)");for(v=r=Ha.length;r--;){var Ia=Ha[r];!l&&B!==Ia.origType||e&&e.guid!==Ia.guid||M&&!M.test(Ia.namespace)||f&&f!==Ia.selector&&("**"!==f||!Ia.selector)||(Ha.splice(r,1),Ia.selector&&Ha.delegateCount--,Y.remove&&Y.remove.call(a,Ia))}v&&!Ha.length&&(Y.teardown&&
!1!==Y.teardown.call(a,pa,G.handle)||g.removeEvent(a,Q,G.handle),delete C[Q])}else for(Q in C)g.event.remove(a,Q+b[z],e,f,!0)}g.isEmptyObject(C)&&T.remove(a,"handle events")}},dispatch:function(a){var b,e,f,l=Array(arguments.length),r=g.event.fix(a);var v=(T.get(this,"events")||Object.create(null))[r.type]||[];var C=g.event.special[r.type]||{};l[0]=r;for(b=1;b<arguments.length;b++)l[b]=arguments[b];r.delegateTarget=this;if(!C.preDispatch||!1!==C.preDispatch.call(this,r)){var z=g.event.handlers.call(this,
r,v);for(b=0;(f=z[b++])&&!r.isPropagationStopped();)for(r.currentTarget=f.elem,v=0;(e=f.handlers[v++])&&!r.isImmediatePropagationStopped();)if(!r.rnamespace||!1===e.namespace||r.rnamespace.test(e.namespace))r.handleObj=e,r.data=e.data,e=((g.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,l),void 0!==e&&!1===(r.result=e)&&(r.preventDefault(),r.stopPropagation());C.postDispatch&&C.postDispatch.call(this,r);return r.result}},handlers:function(a,b){var e,f=[],l=b.delegateCount,r=a.target;
if(l&&r.nodeType&&!("click"===a.type&&1<=a.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==a.type||!0!==r.disabled)){var v=[];var C={};for(e=0;e<l;e++){var z=b[e];var B=z.selector+" ";void 0===C[B]&&(C[B]=z.needsContext?-1<g(B,this).index(r):g.find(B,this,null,[r]).length);C[B]&&v.push(z)}v.length&&f.push({elem:r,handlers:v})}l<b.length&&f.push({elem:this,handlers:b.slice(l)});return f},addProp:function(a,b){Object.defineProperty(g.Event.prototype,a,{enumerable:!0,configurable:!0,
get:ba(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(e){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(a){return a[g.expando]?a:new g.Event(a)},special:{load:{noBubble:!0},click:{setup:function(a){a=this||a;Ab.test(a.type)&&a.click&&h(a,"input")&&R(a,"click",oa);return!1},trigger:function(a){a=this||a;Ab.test(a.type)&&a.click&&h(a,"input")&&R(a,"click");
return!0},_default:function(a){a=a.target;return Ab.test(a.type)&&a.click&&h(a,"input")&&T.get(a,"click")||h(a,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}};g.removeEvent=function(a,b,e){a.removeEventListener&&a.removeEventListener(b,e)};g.Event=function(a,b){if(!(this instanceof g.Event))return new g.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&
!1===a.returnValue?oa:ya,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a;b&&g.extend(this,b);this.timeStamp=a&&a.timeStamp||Date.now();this[g.expando]=!0};g.Event.prototype={constructor:g.Event,isDefaultPrevented:ya,isPropagationStopped:ya,isImmediatePropagationStopped:ya,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=oa;a&&!this.isSimulated&&a.preventDefault()},
stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=oa;a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=oa;a&&!this.isSimulated&&a.stopImmediatePropagation();this.stopPropagation()}};g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,
buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&yd.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&zd.test(a.type)?b&1?1:b&2?3:b&4?2:0:a.which}},g.event.addProp);g.each({focus:"focusin",blur:"focusout"},function(a,b){g.event.special[a]={setup:function(){R(this,a,Qb);return!1},trigger:function(){R(this,a);return!0},delegateType:b}});
g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){g.event.special[a]={delegateType:b,bindType:b,handle:function(e){var f=e.relatedTarget,l=e.handleObj;if(!f||f!==this&&!g.contains(this,f)){e.type=l.origType;var r=l.handler.apply(this,arguments);e.type=b}return r}}});g.fn.extend({on:function(a,b,e,f){return N(this,a,b,e,f)},one:function(a,b,e,f){return N(this,a,b,e,f,1)},off:function(a,b,e){if(a&&a.preventDefault&&a.handleObj){var f=
a.handleObj;g(a.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler);return this}if("object"===typeof a){for(f in a)this.off(f,b,a[f]);return this}if(!1===b||"function"===typeof b)e=b,b=void 0;!1===e&&(e=ya);return this.each(function(){g.event.remove(this,a,e,b)})}});var Ad=/<script|<style|<link/i,Vc=/checked\s*(?:[^=]|=\s*.checked.)/i,Wc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;g.extend({htmlPrefilter:function(a){return a},clone:function(a,b,e){var f,l=a.cloneNode(!0),
r=rb(a);if(!(na.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||g.isXMLDoc(a))){var v=fa(l);var C=fa(a);var z=0;for(f=C.length;z<f;z++){var B=C[z],G=v[z],M=G.nodeName.toLowerCase();if("input"===M&&Ab.test(B.type))G.checked=B.checked;else if("input"===M||"textarea"===M)G.defaultValue=B.defaultValue}}if(b)if(e)for(C=C||fa(a),v=v||fa(l),z=0,f=C.length;z<f;z++)la(C[z],v[z]);else la(a,l);v=fa(l,"script");0<v.length&&Ea(v,!r&&fa(a,"script"));return l},cleanData:function(a){for(var b,e,f,l=g.event.special,
r=0;void 0!==(e=a[r]);r++)if(zb(e)){if(b=e[T.expando]){if(b.events)for(f in b.events)l[f]?g.event.remove(e,f):g.removeEvent(e,f,b.handle);e[T.expando]=void 0}e[Na.expando]&&(e[Na.expando]=void 0)}}});g.fn.extend({detach:function(a){return Ca(this,a,!0)},remove:function(a){return Ca(this,a)},text:function(a){return fb(this,function(b){return void 0===b?g.text(this):this.empty().each(function(){if(1===this.nodeType||11===this.nodeType||9===this.nodeType)this.textContent=b})},null,a,arguments.length)},
append:function(){return ta(this,arguments,function(a){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ca(this,a).appendChild(a)})},prepend:function(){return ta(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ta(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ta(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,
this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(g.cleanData(fa(a,!1)),a.textContent="");return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return g.clone(this,a,b)})},html:function(a){return fb(this,function(b){var e=this[0]||{},f=0,l=this.length;if(void 0===b&&1===e.nodeType)return e.innerHTML;if("string"===typeof b&&!Ad.test(b)&&!Qa[(gc.exec(b)||["",""])[1].toLowerCase()]){b=g.htmlPrefilter(b);try{for(;f<l;f++)e=this[f]||
{},1===e.nodeType&&(g.cleanData(fa(e,!1)),e.innerHTML=b);e=0}catch(r){}}e&&this.empty().append(b)},null,a,arguments.length)},replaceWith:function(){var a=[];return ta(this,arguments,function(b){var e=this.parentNode;0>g.inArray(this,a)&&(g.cleanData(fa(this)),e&&e.replaceChild(b,this))},a)}});g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){g.fn[a]=function(e){for(var f=[],l=g(e),r=l.length-1,v=0;v<=r;v++)e=v===r?this:
this.clone(!0),g(l[v])[b](e),Wb.apply(f,e.get());return this.pushStack(f)}});var Rb=new RegExp("^("+Dc+")(?!px)[a-z%]+$","i"),Hb=function(a){var b=a.ownerDocument.defaultView;b&&b.opener||(b=m);return b.getComputedStyle(a)},Fc=function(a,b,e){var f,l={};for(f in b)l[f]=a.style[f],a.style[f]=b[f];e=e.call(a);for(f in b)a.style[f]=l[f];return e},Xc=new RegExp(ab.join("|"),"i");(function(){function a(){if(z){C.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";
z.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";pb.appendChild(C).appendChild(z);var B=m.getComputedStyle(z);b="1%"!==B.top;v=12===Math.round(parseFloat(B.marginLeft));z.style.right="60%";l=36===Math.round(parseFloat(B.right));e=36===Math.round(parseFloat(B.width));z.style.position="absolute";f=12===Math.round(parseFloat(z.offsetWidth/3));pb.removeChild(C);z=null}}var b,e,f,l,r,v,C=ia.createElement("div"),
z=ia.createElement("div");z.style&&(z.style.backgroundClip="content-box",z.cloneNode(!0).style.backgroundClip="",na.clearCloneStyle="content-box"===z.style.backgroundClip,g.extend(na,{boxSizingReliable:function(){a();return e},pixelBoxStyles:function(){a();return l},pixelPosition:function(){a();return b},reliableMarginLeft:function(){a();return v},scrollboxSize:function(){a();return f},reliableTrDimensions:function(){if(null==r){var B=ia.createElement("table");var G=ia.createElement("tr");var M=ia.createElement("div");
B.style.cssText="position:absolute;left:-11111px";G.style.height="1px";M.style.height="9px";pb.appendChild(B).appendChild(G).appendChild(M);G=m.getComputedStyle(G);r=3<parseInt(G.height);pb.removeChild(B)}return r}}))})();var lc=["Webkit","Moz","ms"],kc=ia.createElement("div").style,jc={},Bd=/^(none|table(?!-c[ea]).+)/,Gc=/^--/,Cd={position:"absolute",visibility:"hidden",display:"block"},Hc={letterSpacing:"0",fontWeight:"400"};g.extend({cssHooks:{opacity:{get:function(a,b){if(b)return a=Oa(a,"opacity"),
""===a?"1":a}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(a,b,e,f){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var l,r=I(b),v=Gc.test(b),C=a.style;v||(b=Ka(r));var z=g.cssHooks[b]||g.cssHooks[r];if(void 0!==e){var B=typeof e;"string"===
B&&(l=vb.exec(e))&&l[1]&&(e=ka(a,b,l),B="number");null!=e&&e===e&&("number"!==B||v||(e+=l&&l[3]||(g.cssNumber[r]?"":"px")),na.clearCloneStyle||""!==e||0!==b.indexOf("background")||(C[b]="inherit"),z&&"set"in z&&void 0===(e=z.set(a,e,f))||(v?C.setProperty(b,e):C[b]=e))}else return z&&"get"in z&&void 0!==(l=z.get(a,!1,f))?l:C[b]}},css:function(a,b,e,f){var l;var r=I(b);Gc.test(b)||(b=Ka(r));(r=g.cssHooks[b]||g.cssHooks[r])&&"get"in r&&(l=r.get(a,!0,e));void 0===l&&(l=Oa(a,b,f));"normal"===l&&b in Hc&&
(l=Hc[b]);return""===e||e?(a=parseFloat(l),!0===e||isFinite(a)?a||0:l):l}});g.each(["height","width"],function(a,b){g.cssHooks[b]={get:function(e,f,l){if(f)return!Bd.test(g.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ma(e,b,l):Fc(e,Cd,function(){return Ma(e,b,l)})},set:function(e,f,l){var r,v=Hb(e),C=!na.scrollboxSize()&&"absolute"===v.position,z=(C||l)&&"border-box"===g.css(e,"boxSizing",!1,v);l=l?Ua(e,b,l,z,v):0;z&&C&&(l-=Math.ceil(e["offset"+b[0].toUpperCase()+
b.slice(1)]-parseFloat(v[b])-Ua(e,b,"border",!1,v)-.5));l&&(r=vb.exec(f))&&"px"!==(r[3]||"px")&&(e.style[b]=f,f=g.css(e,b));return Ta(e,f,l)}}});g.cssHooks.marginLeft=Ra(na.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Oa(a,"marginLeft"))||a.getBoundingClientRect().left-Fc(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"});g.each({margin:"",padding:"",border:"Width"},function(a,b){g.cssHooks[a+b]={expand:function(e){var f=0,l={};for(e="string"===typeof e?e.split(" "):
[e];4>f;f++)l[a+ab[f]+b]=e[f]||e[f-2]||e[0];return l}};"margin"!==a&&(g.cssHooks[a+b].set=Ta)});g.fn.extend({css:function(a,b){return fb(this,function(e,f,l){var r,v={},C=0;if(Array.isArray(f)){l=Hb(e);for(r=f.length;C<r;C++)v[f[C]]=g.css(e,f[C],!1,l);return v}return void 0!==l?g.style(e,f,l):g.css(e,f)},a,b,1<arguments.length)}});g.Tween=La;La.prototype={constructor:La,init:function(a,b,e,f,l,r){this.elem=a;this.prop=e;this.easing=l||g.easing._default;this.options=b;this.start=this.now=this.cur();
this.end=f;this.unit=r||(g.cssNumber[e]?"":"px")},cur:function(){var a=La.propHooks[this.prop];return a&&a.get?a.get(this):La.propHooks._default.get(this)},run:function(a){var b,e=La.propHooks[this.prop];this.pos=this.options.duration?b=g.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):b=a;this.now=(this.end-this.start)*b+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);e&&e.set?e.set(this):La.propHooks._default.set(this);return this}};La.prototype.init.prototype=
La.prototype;La.propHooks={_default:{get:function(a){return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(a=g.css(a.elem,a.prop,""))&&"auto"!==a?a:0},set:function(a){if(g.fx.step[a.prop])g.fx.step[a.prop](a);else 1!==a.elem.nodeType||!g.cssHooks[a.prop]&&null==a.elem.style[Ka(a.prop)]?a.elem[a.prop]=a.now:g.style(a.elem,a.prop,a.now+a.unit)}}};La.propHooks.scrollTop=La.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=
a.now)}};g.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"};g.fx=La.prototype.init;g.fx.step={};var sb,Ib,Dd=/^(?:toggle|show|hide)$/,Ed=/queueHooks$/;g.Animation=g.extend(Va,{tweeners:{"*":[function(a,b){var e=this.createTween(a,b);ka(e.elem,a,vb.exec(b),e);return e}]},tweener:function(a,b){ba(a)?(b=a,a=["*"]):a=a.match(Za);for(var e,f=0,l=a.length;f<l;f++)e=a[f],Va.tweeners[e]=Va.tweeners[e]||[],Va.tweeners[e].unshift(b)},prefilters:[function(a,
b,e){var f;var l="width"in b||"height"in b;var r=this,v={},C=a.style,z=a.nodeType&&Gb(a),B=T.get(a,"fxshow");if(!e.queue){var G=g._queueHooks(a,"fx");if(null==G.unqueued){G.unqueued=0;var M=G.empty.fire;G.empty.fire=function(){G.unqueued||M()}}G.unqueued++;r.always(function(){r.always(function(){G.unqueued--;g.queue(a,"fx").length||G.empty.fire()})})}for(f in b){var Q=b[f];if(Dd.test(Q)){delete b[f];var pa=pa||"toggle"===Q;if(Q===(z?"hide":"show"))if("show"===Q&&B&&void 0!==B[f])z=!0;else continue;
v[f]=B&&B[f]||g.style(a,f)}}if((b=!g.isEmptyObject(b))||!g.isEmptyObject(v)){if(l&&1===a.nodeType){e.overflow=[C.overflow,C.overflowX,C.overflowY];var Y=B&&B.display;null==Y&&(Y=T.get(a,"display"));l=g.css(a,"display");"none"===l&&(Y?l=Y:(W([a],!0),Y=a.style.display||Y,l=g.css(a,"display"),W([a])));("inline"===l||"inline-block"===l&&null!=Y)&&"none"===g.css(a,"float")&&(b||(r.done(function(){C.display=Y}),null==Y&&(l=C.display,Y="none"===l?"":l)),C.display="inline-block")}e.overflow&&(C.overflow=
"hidden",r.always(function(){C.overflow=e.overflow[0];C.overflowX=e.overflow[1];C.overflowY=e.overflow[2]}));b=!1;for(f in v)b||(B?"hidden"in B&&(z=B.hidden):B=T.access(a,"fxshow",{display:Y}),pa&&(B.hidden=!z),z&&W([a],!0),r.done(function(){z||W([a]);T.remove(a,"fxshow");for(f in v)g.style(a,f,v[f])})),b=mc(z?B[f]:0,f,r),f in B||(B[f]=b.start,z&&(b.end=b.start,b.start=0))}}],prefilter:function(a,b){b?Va.prefilters.unshift(a):Va.prefilters.push(a)}});g.speed=function(a,b,e){var f=a&&"object"===typeof a?
g.extend({},a):{complete:e||!e&&b||ba(a)&&a,duration:a,easing:e&&b||b&&!ba(b)&&b};g.fx.off?f.duration=0:"number"!==typeof f.duration&&(f.duration=f.duration in g.fx.speeds?g.fx.speeds[f.duration]:g.fx.speeds._default);if(null==f.queue||!0===f.queue)f.queue="fx";f.old=f.complete;f.complete=function(){ba(f.old)&&f.old.call(this);f.queue&&g.dequeue(this,f.queue)};return f};g.fn.extend({fadeTo:function(a,b,e,f){return this.filter(Gb).css("opacity",0).show().end().animate({opacity:b},a,e,f)},animate:function(a,
b,e,f){var l=g.isEmptyObject(a),r=g.speed(b,e,f);b=function(){var v=Va(this,g.extend({},a),r);(l||T.get(this,"finish"))&&v.stop(!0)};b.finish=b;return l||!1===r.queue?this.each(b):this.queue(r.queue,b)},stop:function(a,b,e){var f=function(l){var r=l.stop;delete l.stop;r(e)};"string"!==typeof a&&(e=b,b=a,a=void 0);b&&this.queue(a||"fx",[]);return this.each(function(){var l=!0,r=null!=a&&a+"queueHooks",v=g.timers,C=T.get(this);if(r)C[r]&&C[r].stop&&f(C[r]);else for(r in C)C[r]&&C[r].stop&&Ed.test(r)&&
f(C[r]);for(r=v.length;r--;)v[r].elem!==this||null!=a&&v[r].queue!==a||(v[r].anim.stop(e),l=!1,v.splice(r,1));!l&&e||g.dequeue(this,a)})},finish:function(a){!1!==a&&(a=a||"fx");return this.each(function(){var b=T.get(this),e=b[a+"queue"];var f=b[a+"queueHooks"];var l=g.timers,r=e?e.length:0;b.finish=!0;g.queue(this,a,[]);f&&f.stop&&f.stop.call(this,!0);for(f=l.length;f--;)l[f].elem===this&&l[f].queue===a&&(l[f].anim.stop(!0),l.splice(f,1));for(f=0;f<r;f++)e[f]&&e[f].finish&&e[f].finish.call(this);
delete b.finish})}});g.each(["toggle","show","hide"],function(a,b){var e=g.fn[b];g.fn[b]=function(f,l,r){return null==f||"boolean"===typeof f?e.apply(this,arguments):this.animate(tb(b,!0),f,l,r)}});g.each({slideDown:tb("show"),slideUp:tb("hide"),slideToggle:tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){g.fn[a]=function(e,f,l){return this.animate(b,e,f,l)}});g.timers=[];g.fx.tick=function(){var a=0,b=g.timers;for(sb=Date.now();a<b.length;a++){var e=
b[a];e()||b[a]!==e||b.splice(a--,1)}b.length||g.fx.stop();sb=void 0};g.fx.timer=function(a){g.timers.push(a);g.fx.start()};g.fx.interval=13;g.fx.start=function(){Ib||(Ib=!0,hb())};g.fx.stop=function(){Ib=null};g.fx.speeds={slow:600,fast:200,_default:400};g.fn.delay=function(a,b){a=g.fx?g.fx.speeds[a]||a:a;return this.queue(b||"fx",function(e,f){var l=m.setTimeout(e,a);f.stop=function(){m.clearTimeout(l)}})};(function(){var a=ia.createElement("input"),b=ia.createElement("select").appendChild(ia.createElement("option"));
a.type="checkbox";na.checkOn=""!==a.value;na.optSelected=b.selected;a=ia.createElement("input");a.value="t";a.type="radio";na.radioValue="t"===a.value})();var Bb=g.expr.attrHandle;g.fn.extend({attr:function(a,b){return fb(this,g.attr,a,b,1<arguments.length)},removeAttr:function(a){return this.each(function(){g.removeAttr(this,a)})}});g.extend({attr:function(a,b,e){var f,l,r=a.nodeType;if(3!==r&&8!==r&&2!==r){if("undefined"===typeof a.getAttribute)return g.prop(a,b,e);1===r&&g.isXMLDoc(a)||(l=g.attrHooks[b.toLowerCase()]||
(g.expr.match.bool.test(b)?Fd:void 0));if(void 0!==e){if(null===e){g.removeAttr(a,b);return}if(l&&"set"in l&&void 0!==(f=l.set(a,e,b)))return f;a.setAttribute(b,e+"");return e}if(l&&"get"in l&&null!==(f=l.get(a,b)))return f;f=g.find.attr(a,b);return null==f?void 0:f}},attrHooks:{type:{set:function(a,b){if(!na.radioValue&&"radio"===b&&h(a,"input")){var e=a.value;a.setAttribute("type",b);e&&(a.value=e);return b}}}},removeAttr:function(a,b){var e=0,f=b&&b.match(Za);if(f&&1===a.nodeType)for(;b=f[e++];)a.removeAttribute(b)}});
var Fd={set:function(a,b,e){!1===b?g.removeAttr(a,e):a.setAttribute(e,e);return e}};g.each(g.expr.match.bool.source.match(/\w+/g),function(a,b){var e=Bb[b]||g.find.attr;Bb[b]=function(f,l,r){var v=l.toLowerCase();if(!r){var C=Bb[v];Bb[v]=z;var z=null!=e(f,l,r)?v:null;Bb[v]=C}return z}});var Gd=/^(?:input|select|textarea|button)$/i,Hd=/^(?:a|area)$/i;g.fn.extend({prop:function(a,b){return fb(this,g.prop,a,b,1<arguments.length)},removeProp:function(a){return this.each(function(){delete this[g.propFix[a]||
a]})}});g.extend({prop:function(a,b,e){var f,l=a.nodeType;if(3!==l&&8!==l&&2!==l){if(1!==l||!g.isXMLDoc(a)){b=g.propFix[b]||b;var r=g.propHooks[b]}return void 0!==e?r&&"set"in r&&void 0!==(f=r.set(a,e,b))?f:a[b]=e:r&&"get"in r&&null!==(f=r.get(a,b))?f:a[b]}},propHooks:{tabIndex:{get:function(a){var b=g.find.attr(a,"tabindex");return b?parseInt(b,10):Gd.test(a.nodeName)||Hd.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});na.optSelected||(g.propHooks.selected={get:function(a){(a=
a.parentNode)&&a.parentNode&&a.parentNode.selectedIndex;return null},set:function(a){if(a=a.parentNode)a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex}});g.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){g.propFix[this.toLowerCase()]=this});g.fn.extend({addClass:function(a){var b,e,f,l,r=0;if(ba(a))return this.each(function(z){g(this).addClass(a.call(this,z,kb(this)))});var v=Sb(a);if(v.length)for(;b=this[r++];){var C=
kb(b);if(e=1===b.nodeType&&" "+jb(C)+" "){for(l=0;f=v[l++];)0>e.indexOf(" "+f+" ")&&(e+=f+" ");e=jb(e);C!==e&&b.setAttribute("class",e)}}return this},removeClass:function(a){var b,e,f,l,r=0;if(ba(a))return this.each(function(z){g(this).removeClass(a.call(this,z,kb(this)))});if(!arguments.length)return this.attr("class","");var v=Sb(a);if(v.length)for(;b=this[r++];){var C=kb(b);if(e=1===b.nodeType&&" "+jb(C)+" "){for(l=0;f=v[l++];)for(;-1<e.indexOf(" "+f+" ");)e=e.replace(" "+f+" "," ");e=jb(e);C!==
e&&b.setAttribute("class",e)}}return this},toggleClass:function(a,b){var e=typeof a,f="string"===e||Array.isArray(a);return"boolean"===typeof b&&f?b?this.addClass(a):this.removeClass(a):ba(a)?this.each(function(l){g(this).toggleClass(a.call(this,l,kb(this),b),b)}):this.each(function(){var l,r;if(f){var v=0;var C=g(this);for(r=Sb(a);l=r[v++];)C.hasClass(l)?C.removeClass(l):C.addClass(l)}else if(void 0===a||"boolean"===e)(l=kb(this))&&T.set(this,"__className__",l),this.setAttribute&&this.setAttribute("class",
l||!1===a?"":T.get(this,"__className__")||"")})},hasClass:function(a){var b,e=0;for(a=" "+a+" ";b=this[e++];)if(1===b.nodeType&&-1<(" "+jb(kb(b))+" ").indexOf(a))return!0;return!1}});var Id=/\r/g;g.fn.extend({val:function(a){var b,e,f=this[0];if(arguments.length){var l=ba(a);return this.each(function(r){1===this.nodeType&&(r=l?a.call(this,r,g(this).val()):a,null==r?r="":"number"===typeof r?r+="":Array.isArray(r)&&(r=g.map(r,function(v){return null==v?"":v+""})),b=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],
b&&"set"in b&&void 0!==b.set(this,r,"value")||(this.value=r))})}if(f){if((b=g.valHooks[f.type]||g.valHooks[f.nodeName.toLowerCase()])&&"get"in b&&void 0!==(e=b.get(f,"value")))return e;e=f.value;return"string"===typeof e?e.replace(Id,""):null==e?"":e}}});g.extend({valHooks:{option:{get:function(a){var b=g.find.attr(a,"value");return null!=b?b:jb(g.text(a))}},select:{get:function(a){var b=a.options,e=a.selectedIndex,f="select-one"===a.type,l=f?null:[],r=f?e+1:b.length;for(a=0>e?r:f?e:0;a<r;a++){var v=
b[a];if(!(!v.selected&&a!==e||v.disabled||v.parentNode.disabled&&h(v.parentNode,"optgroup"))){v=g(v).val();if(f)return v;l.push(v)}}return l},set:function(a,b){for(var e,f=a.options,l=g.makeArray(b),r=f.length;r--;)if(b=f[r],b.selected=-1<g.inArray(g.valHooks.option.get(b),l))e=!0;e||(a.selectedIndex=-1);return l}}}});g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=-1<g.inArray(g(a).val(),b)}};na.checkOn||(g.valHooks[this].get=function(a){return null===
a.getAttribute("value")?"on":a.value})});na.focusin="onfocusin"in m;var Ic=/^(?:focusinfocus|focusoutblur)$/,Jc=function(a){a.stopPropagation()};g.extend(g.event,{trigger:function(a,b,e,f){var l,r,v,C=[e||ia],z=Jb.call(a,"type")?a.type:a;var B=Jb.call(a,"namespace")?a.namespace.split("."):[];var G=v=l=e=e||ia;if(3!==e.nodeType&&8!==e.nodeType&&!Ic.test(z+g.event.triggered)){-1<z.indexOf(".")&&(B=z.split("."),z=B.shift(),B.sort());var M=0>z.indexOf(":")&&"on"+z;a=a[g.expando]?a:new g.Event(z,"object"===
typeof a&&a);a.isTrigger=f?2:3;a.namespace=B.join(".");a.rnamespace=a.namespace?new RegExp("(^|\\.)"+B.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;a.result=void 0;a.target||(a.target=e);b=null==b?[a]:g.makeArray(b,[a]);B=g.event.special[z]||{};if(f||!B.trigger||!1!==B.trigger.apply(e,b)){if(!f&&!B.noBubble&&!qb(e)){var Q=B.delegateType||z;Ic.test(Q+z)||(G=G.parentNode);for(;G;G=G.parentNode)C.push(G),l=G;l===(e.ownerDocument||ia)&&C.push(l.defaultView||l.parentWindow||m)}for(l=0;(G=C[l++])&&!a.isPropagationStopped();)v=
G,a.type=1<l?Q:B.bindType||z,(r=(T.get(G,"events")||Object.create(null))[a.type]&&T.get(G,"handle"))&&r.apply(G,b),(r=M&&G[M])&&r.apply&&zb(G)&&(a.result=r.apply(G,b),!1===a.result&&a.preventDefault());a.type=z;f||a.isDefaultPrevented()||B._default&&!1!==B._default.apply(C.pop(),b)||!zb(e)||!M||!ba(e[z])||qb(e)||((l=e[M])&&(e[M]=null),g.event.triggered=z,a.isPropagationStopped()&&v.addEventListener(z,Jc),e[z](),a.isPropagationStopped()&&v.removeEventListener(z,Jc),g.event.triggered=void 0,l&&(e[M]=
l));return a.result}}},simulate:function(a,b,e){a=g.extend(new g.Event,e,{type:a,isSimulated:!0});g.event.trigger(a,null,b)}});g.fn.extend({trigger:function(a,b){return this.each(function(){g.event.trigger(a,b,this)})},triggerHandler:function(a,b){var e=this[0];if(e)return g.event.trigger(a,b,e,!0)}});na.focusin||g.each({focus:"focusin",blur:"focusout"},function(a,b){var e=function(f){g.event.simulate(b,f.target,g.event.fix(f))};g.event.special[b]={setup:function(){var f=this.ownerDocument||this.document||
this,l=T.access(f,b);l||f.addEventListener(a,e,!0);T.access(f,b,(l||0)+1)},teardown:function(){var f=this.ownerDocument||this.document||this,l=T.access(f,b)-1;l?T.access(f,b,l):(f.removeEventListener(a,e,!0),T.remove(f,b))}}});var Cb=m.location,Kc=Date.now(),bc=/\?/;g.parseXML=function(a){if(!a||"string"!==typeof a)return null;try{var b=(new m.DOMParser).parseFromString(a,"text/xml")}catch(e){b=void 0}b&&!b.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+a);return b};var Zc=/\[\]$/,
Lc=/\r?\n/g,Jd=/^(?:submit|button|image|reset|file)$/i,Kd=/^(?:input|select|textarea|keygen)/i;g.param=function(a,b){var e,f=[],l=function(r,v){v=ba(v)?v():v;f[f.length]=encodeURIComponent(r)+"\x3d"+encodeURIComponent(null==v?"":v)};if(null==a)return"";if(Array.isArray(a)||a.jquery&&!g.isPlainObject(a))g.each(a,function(){l(this.name,this.value)});else for(e in a)Tb(e,a[e],b,l);return f.join("\x26")};g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=
g.prop(this,"elements");return a?g.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!g(this).is(":disabled")&&Kd.test(this.nodeName)&&!Jd.test(a)&&(this.checked||!Ab.test(a))}).map(function(a,b){a=g(this).val();return null==a?null:Array.isArray(a)?g.map(a,function(e){return{name:b.name,value:e.replace(Lc,"\r\n")}}):{name:b.name,value:a.replace(Lc,"\r\n")}}).get()}});var Ld=/%20/g,Md=/#.*$/,Nd=/([?&])_=[^&]*/,Od=/^(.*?):[ \t]*([^\r\n]*)$/mg,Pd=/^(?:GET|HEAD)$/,Qd=/^\/\//,Mc=
{},Ub={},Nc="*/".concat("*"),cc=ia.createElement("a");cc.href=Cb.href;g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Cb.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Cb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",accepts:{"*":Nc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},
responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Vb(Vb(a,g.ajaxSettings),b):Vb(g.ajaxSettings,a)},ajaxPrefilter:nc(Mc),ajaxTransport:nc(Ub),ajax:function(a,b){function e(ea,ra,Pa,aa){var Da,za=ra;if(!Ja){Ja=!0;v&&m.clearTimeout(v);f=void 0;l=aa||"";X.readyState=0<ea?4:0;aa=200<=ea&&300>ea||304===ea;Pa&&(Da=$c(B,X,Pa));
!aa&&-1<g.inArray("script",B.dataTypes)&&(B.converters["text script"]=function(){});Da=ad(B,Da,X,aa);if(aa)if(B.ifModified&&((Pa=X.getResponseHeader("Last-Modified"))&&(g.lastModified[Ga]=Pa),(Pa=X.getResponseHeader("etag"))&&(g.etag[Ga]=Pa)),204===ea||"HEAD"===B.type)za="nocontent";else if(304===ea)za="notmodified";else{za=Da.state;var Aa=Da.data;var Sa=Da.error;aa=!Sa}else if(Sa=za,ea||!za)za="error",0>ea&&(ea=0);X.status=ea;X.statusText=(ra||za)+"";aa?Q.resolveWith(G,[Aa,za,X]):Q.rejectWith(G,
[X,za,Sa]);X.statusCode(Y);Y=void 0;C&&M.trigger(aa?"ajaxSuccess":"ajaxError",[X,B,aa?Aa:Sa]);pa.fireWith(G,[X,za]);C&&(M.trigger("ajaxComplete",[X,B]),--g.active||g.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var f,l,r,v,C,z,B=g.ajaxSetup({},b),G=B.context||B,M=B.context&&(G.nodeType||G.jquery)?g(G):g.event,Q=g.Deferred(),pa=g.Callbacks("once memory"),Y=B.statusCode||{},Ha={},Ia={},Wa="canceled",X={readyState:0,getResponseHeader:function(ea){var ra;if(Ja){if(!r)for(r=
{};ra=Od.exec(l);)r[ra[1].toLowerCase()+" "]=(r[ra[1].toLowerCase()+" "]||[]).concat(ra[2]);ra=r[ea.toLowerCase()+" "]}return null==ra?null:ra.join(", ")},getAllResponseHeaders:function(){return Ja?l:null},setRequestHeader:function(ea,ra){null==Ja&&(ea=Ia[ea.toLowerCase()]=Ia[ea.toLowerCase()]||ea,Ha[ea]=ra);return this},overrideMimeType:function(ea){null==Ja&&(B.mimeType=ea);return this},statusCode:function(ea){var ra;if(ea)if(Ja)X.always(ea[X.status]);else for(ra in ea)Y[ra]=[Y[ra],ea[ra]];return this},
abort:function(ea){ea=ea||Wa;f&&f.abort(ea);e(0,ea);return this}};Q.promise(X);B.url=((a||B.url||Cb.href)+"").replace(Qd,Cb.protocol+"//");B.type=b.method||b.type||B.method||B.type;B.dataTypes=(B.dataType||"*").toLowerCase().match(Za)||[""];if(null==B.crossDomain){a=ia.createElement("a");try{a.href=B.url,a.href=a.href,B.crossDomain=cc.protocol+"//"+cc.host!==a.protocol+"//"+a.host}catch(ea){B.crossDomain=!0}}B.data&&B.processData&&"string"!==typeof B.data&&(B.data=g.param(B.data,B.traditional));oc(Mc,
B,b,X);if(Ja)return X;(C=g.event&&B.global)&&0===g.active++&&g.event.trigger("ajaxStart");B.type=B.type.toUpperCase();B.hasContent=!Pd.test(B.type);var Ga=B.url.replace(Md,"");B.hasContent?B.data&&B.processData&&0===(B.contentType||"").indexOf("application/x-www-form-urlencoded")&&(B.data=B.data.replace(Ld,"+")):(a=B.url.slice(Ga.length),B.data&&(B.processData||"string"===typeof B.data)&&(Ga+=(bc.test(Ga)?"\x26":"?")+B.data,delete B.data),!1===B.cache&&(Ga=Ga.replace(Nd,"$1"),a=(bc.test(Ga)?"\x26":
"?")+"_\x3d"+Kc++ +a),B.url=Ga+a);B.ifModified&&(g.lastModified[Ga]&&X.setRequestHeader("If-Modified-Since",g.lastModified[Ga]),g.etag[Ga]&&X.setRequestHeader("If-None-Match",g.etag[Ga]));(B.data&&B.hasContent&&!1!==B.contentType||b.contentType)&&X.setRequestHeader("Content-Type",B.contentType);X.setRequestHeader("Accept",B.dataTypes[0]&&B.accepts[B.dataTypes[0]]?B.accepts[B.dataTypes[0]]+("*"!==B.dataTypes[0]?", "+Nc+"; q\x3d0.01":""):B.accepts["*"]);for(z in B.headers)X.setRequestHeader(z,B.headers[z]);
if(B.beforeSend&&(!1===B.beforeSend.call(G,X,B)||Ja))return X.abort();Wa="abort";pa.add(B.complete);X.done(B.success);X.fail(B.error);if(f=oc(Ub,B,b,X)){X.readyState=1;C&&M.trigger("ajaxSend",[X,B]);if(Ja)return X;B.async&&0<B.timeout&&(v=m.setTimeout(function(){X.abort("timeout")},B.timeout));try{var Ja=!1;f.send(Ha,e)}catch(ea){if(Ja)throw ea;e(-1,ea)}}else e(-1,"No Transport");return X},getJSON:function(a,b,e){return g.get(a,b,e,"json")},getScript:function(a,b){return g.get(a,void 0,b,"script")}});
g.each(["get","post"],function(a,b){g[b]=function(e,f,l,r){ba(f)&&(r=r||l,l=f,f=void 0);return g.ajax(g.extend({url:e,type:b,dataType:r,data:f,success:l},g.isPlainObject(e)&&e))}});g.ajaxPrefilter(function(a){for(var b in a.headers)"content-type"===b.toLowerCase()&&(a.contentType=a.headers[b]||"")});g._evalUrl=function(a,b,e){return g.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(f){g.globalEval(f,b,e)}})};g.fn.extend({wrapAll:function(a){this[0]&&
(ba(a)&&(a=a.call(this[0])),a=g(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&a.insertBefore(this[0]),a.map(function(){for(var b=this;b.firstElementChild;)b=b.firstElementChild;return b}).append(this));return this},wrapInner:function(a){return ba(a)?this.each(function(b){g(this).wrapInner(a.call(this,b))}):this.each(function(){var b=g(this),e=b.contents();e.length?e.wrapAll(a):b.append(a)})},wrap:function(a){var b=ba(a);return this.each(function(e){g(this).wrapAll(b?a.call(this,e):
a)})},unwrap:function(a){this.parent(a).not("body").each(function(){g(this).replaceWith(this.childNodes)});return this}});g.expr.pseudos.hidden=function(a){return!g.expr.pseudos.visible(a)};g.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)};g.ajaxSettings.xhr=function(){try{return new m.XMLHttpRequest}catch(a){}};var Rd={0:200,1223:204},Db=g.ajaxSettings.xhr();na.cors=!!Db&&"withCredentials"in Db;na.ajax=Db=!!Db;g.ajaxTransport(function(a){var b,
e;if(na.cors||Db&&!a.crossDomain)return{send:function(f,l){var r,v=a.xhr();v.open(a.type,a.url,a.async,a.username,a.password);if(a.xhrFields)for(r in a.xhrFields)v[r]=a.xhrFields[r];a.mimeType&&v.overrideMimeType&&v.overrideMimeType(a.mimeType);a.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");for(r in f)v.setRequestHeader(r,f[r]);b=function(C){return function(){b&&(b=e=v.onload=v.onerror=v.onabort=v.ontimeout=v.onreadystatechange=null,"abort"===C?v.abort():"error"===
C?"number"!==typeof v.status?l(0,"error"):l(v.status,v.statusText):l(Rd[v.status]||v.status,v.statusText,"text"!==(v.responseType||"text")||"string"!==typeof v.responseText?{binary:v.response}:{text:v.responseText},v.getAllResponseHeaders()))}};v.onload=b();e=v.onerror=v.ontimeout=b("error");void 0!==v.onabort?v.onabort=e:v.onreadystatechange=function(){4===v.readyState&&m.setTimeout(function(){b&&e()})};b=b("abort");try{v.send(a.hasContent&&a.data||null)}catch(C){if(b)throw C;}},abort:function(){b&&
b()}}});g.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){g.globalEval(a);return a}}});g.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1);a.crossDomain&&(a.type="GET")});g.ajaxTransport("script",function(a){if(a.crossDomain||a.scriptAttrs){var b,e;return{send:function(f,
l){b=g("\x3cscript\x3e").attr(a.scriptAttrs||{}).prop({charset:a.scriptCharset,src:a.url}).on("load error",e=function(r){b.remove();e=null;r&&l("error"===r.type?404:200,r.type)});ia.head.appendChild(b[0])},abort:function(){e&&e()}}}});var Oc=[],dc=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Oc.pop()||g.expando+"_"+Kc++;this[a]=!0;return a}});g.ajaxPrefilter("json jsonp",function(a,b,e){var f,l=!1!==a.jsonp&&(dc.test(a.url)?"url":"string"===typeof a.data&&0===(a.contentType||
"").indexOf("application/x-www-form-urlencoded")&&dc.test(a.data)&&"data");if(l||"jsonp"===a.dataTypes[0]){var r=a.jsonpCallback=ba(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback;l?a[l]=a[l].replace(dc,"$1"+r):!1!==a.jsonp&&(a.url+=(bc.test(a.url)?"\x26":"?")+a.jsonp+"\x3d"+r);a.converters["script json"]=function(){f||g.error(r+" was not called");return f[0]};a.dataTypes[0]="json";var v=m[r];m[r]=function(){f=arguments};e.always(function(){void 0===v?g(m).removeProp(r):m[r]=v;a[r]&&(a.jsonpCallback=
b.jsonpCallback,Oc.push(r));f&&ba(v)&&v(f[0]);f=v=void 0});return"script"}});na.createHTMLDocument=function(){var a=ia.implementation.createHTMLDocument("").body;a.innerHTML="\x3cform\x3e\x3c/form\x3e\x3cform\x3e\x3c/form\x3e";return 2===a.childNodes.length}();g.parseHTML=function(a,b,e){if("string"!==typeof a)return[];"boolean"===typeof b&&(e=b,b=!1);if(!b)if(na.createHTMLDocument){b=ia.implementation.createHTMLDocument("");var f=b.createElement("base");f.href=ia.location.href;b.head.appendChild(f)}else b=
ia;f=Cc.exec(a);e=!e&&[];if(f)return[b.createElement(f[1])];f=sa([a],b,e);e&&e.length&&g(e).remove();return g.merge([],f.childNodes)};g.fn.load=function(a,b,e){var f,l,r=this,v=a.indexOf(" ");if(-1<v){var C=jb(a.slice(v));a=a.slice(0,v)}ba(b)?(e=b,b=void 0):b&&"object"===typeof b&&(f="POST");0<r.length&&g.ajax({url:a,type:f||"GET",dataType:"html",data:b}).done(function(z){l=arguments;r.html(C?g("\x3cdiv\x3e").append(g.parseHTML(z)).find(C):z)}).always(e&&function(z,B){r.each(function(){e.apply(this,
l||[z.responseText,B,z])})});return this};g.expr.pseudos.animated=function(a){return g.grep(g.timers,function(b){return a===b.elem}).length};g.offset={setOffset:function(a,b,e){var f=g.css(a,"position"),l=g(a),r={};"static"===f&&(a.style.position="relative");var v=l.offset();var C=g.css(a,"top");var z=g.css(a,"left");("absolute"===f||"fixed"===f)&&-1<(C+z).indexOf("auto")?(z=l.position(),C=z.top,z=z.left):(C=parseFloat(C)||0,z=parseFloat(z)||0);ba(b)&&(b=b.call(a,e,g.extend({},v)));null!=b.top&&(r.top=
b.top-v.top+C);null!=b.left&&(r.left=b.left-v.left+z);"using"in b?b.using.call(a,r):("number"===typeof r.top&&(r.top+="px"),"number"===typeof r.left&&(r.left+="px"),l.css(r))}};g.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(f){g.offset.setOffset(this,a,f)});var b;if(b=this[0]){if(!b.getClientRects().length)return{top:0,left:0};var e=b.getBoundingClientRect();b=b.ownerDocument.defaultView;return{top:e.top+b.pageYOffset,left:e.left+b.pageXOffset}}},position:function(){if(this[0]){var a,
b=this[0],e={top:0,left:0};if("fixed"===g.css(b,"position"))var f=b.getBoundingClientRect();else{f=this.offset();var l=b.ownerDocument;for(a=b.offsetParent||l.documentElement;a&&(a===l.body||a===l.documentElement)&&"static"===g.css(a,"position");)a=a.parentNode;a&&a!==b&&1===a.nodeType&&(e=g(a).offset(),e.top+=g.css(a,"borderTopWidth",!0),e.left+=g.css(a,"borderLeftWidth",!0))}return{top:f.top-e.top-g.css(b,"marginTop",!0),left:f.left-e.left-g.css(b,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=
this.offsetParent;a&&"static"===g.css(a,"position");)a=a.offsetParent;return a||pb})}});g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var e="pageYOffset"===b;g.fn[a]=function(f){return fb(this,function(l,r,v){if(qb(l))var C=l;else 9===l.nodeType&&(C=l.defaultView);if(void 0===v)return C?C[b]:l[r];C?C.scrollTo(e?C.pageXOffset:v,e?v:C.pageYOffset):l[r]=v},a,f,arguments.length)}});g.each(["top","left"],function(a,b){g.cssHooks[b]=Ra(na.pixelPosition,function(e,f){if(f)return f=
Oa(e,b),Rb.test(f)?g(e).position()[b]+"px":f})});g.each({Height:"height",Width:"width"},function(a,b){g.each({padding:"inner"+a,content:b,"":"outer"+a},function(e,f){g.fn[f]=function(l,r){var v=arguments.length&&(e||"boolean"!==typeof l),C=e||(!0===l||!0===r?"margin":"border");return fb(this,function(z,B,G){return qb(z)?0===f.indexOf("outer")?z["inner"+a]:z.document.documentElement["client"+a]:9===z.nodeType?(B=z.documentElement,Math.max(z.body["scroll"+a],B["scroll"+a],z.body["offset"+a],B["offset"+
a],B["client"+a])):void 0===G?g.css(z,B,C):g.style(z,B,G,C)},b,v?l:void 0,v)}})});g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){g.fn[b]=function(e){return this.on(b,e)}});g.fn.extend({bind:function(a,b,e){return this.on(a,null,b,e)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,e,f){return this.on(b,a,e,f)},undelegate:function(a,b,e){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||
a)}});g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){g.fn[b]=function(e,f){return 0<arguments.length?this.on(b,null,e,f):this.trigger(b)}});var Sd=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;g.proxy=function(a,b){if("string"===typeof b){var e=a[b];b=a;a=e}if(ba(a)){var f=gb.call(arguments,2);e=function(){return a.apply(b||this,f.concat(gb.call(arguments)))};
e.guid=a.guid=a.guid||g.guid++;return e}};g.holdReady=function(a){a?g.readyWait++:g.ready(!0)};g.isArray=Array.isArray;g.parseJSON=JSON.parse;g.nodeName=h;g.isFunction=ba;g.isWindow=qb;g.camelCase=I;g.type=d;g.now=Date.now;g.isNumeric=function(a){var b=g.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))};g.trim=function(a){return null==a?"":(a+"").replace(Sd,"")};"function"===typeof define&&define.amd&&define("jquery",[],function(){return g});var Td=m.jQuery,Ud=m.$;g.noConflict=
function(a){m.$===g&&(m.$=Ud);a&&m.jQuery===g&&(m.jQuery=Td);return g};"undefined"===typeof t&&(m.jQuery=m.$=g);return g});window.ContextHubJQ=window.jQuery.noConflict(!0);
(function(){Function.prototype.bind||(Function.prototype.bind=function(m){var t=this,n=[].slice.call(arguments,1),d=function(){if(this instanceof d){var c=function(){};c.prototype=t.prototype;c=new c;var h=t.apply(c,n.concat([].slice.call(arguments)));c=Object(h)===h?h:c}else c=t.apply(m,n.concat([].slice.call(arguments)));return c};return d})})();
(function(m){m.ContextHub=m.ContextHub||{};var t=function(d,c){return(m.ContextHubKernelConfig.debug||c)&&d?Function.prototype.bind.call(d,m.console):function(){}},n=function(d){var c=m.console||{},h=function(){};ContextHub.console={log:t(c.log),warn:t(c.warn),info:t(c.info),error:t(c.error,!0),debug:t(c.debug),time:t(c.time),timeEnd:t(c.timeEnd),timeStamp:t(c.timeStamp)};d=d||"info";"info"===d&&(ContextHub.console.info=h,ContextHub.console.debug=h);"debug"===d&&(ContextHub.console.log=h,ContextHub.console.warn=
h)};n();ContextHub.debug=function(d,c){"undefined"!==typeof d&&(m.ContextHubKernelConfig.debug=!0===d,n(c));return!!m.ContextHubKernelConfig.debug}})(window);
(function(m,t){t.ContextHub=t.ContextHub||{};t.ContextHub.Utils=t.ContextHub.Utils||{};t.ContextHub.Utils.JSON=t.ContextHub.Utils.JSON||{};var n=function(p){return"\\u"+("0000"+p.charCodeAt(0).toString(16)).slice(-4)},d=function(p){var q={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return'"'+p.replace(/["\\\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,function(y){var x=q[y];return x?x:n(y)})+'"'},
c=function(p){var q=m.type(p);"object"===q&&m.isArray(p)&&(q="array");switch(q){case "null":case "boolean":return String(p);case "undefined":break;case "array":var y=[];for(q=0;q<p.length;q++)y.push(c(p[q])||"null");return"["+y.join(",")+"]";case "number":return String(isFinite(p)?p:"null");case "string":return d(p);case "date":y=p.getUTCFullYear();q=ContextHub.Shared.pad(p.getUTCMonth()+1);var x=ContextHub.Shared.pad(p.getUTCDate()),D=ContextHub.Shared.pad(p.getUTCHours()),F=ContextHub.Shared.pad(p.getUTCMinutes()),
J=ContextHub.Shared.pad(p.getUTCSeconds());p=ContextHub.Shared.pad(p.getUTCMilliseconds(),3);return'"'+y+"-"+q+"-"+x+"T"+D+":"+F+":"+J+"."+p+'Z"';case "regexp":return"{}";case "function":break;default:q=[];for(y in p)Object.prototype.hasOwnProperty.call(p,y)&&(x=typeof y,"number"===x||"string"===x)&&(D=p[y],x=typeof D,"function"!==x&&"undefined"!==x&&q.push(d(y)+":"+c(D)));return"{"+q.join(",")+"}"}},h=function(p){p=String(p).replace(/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
n);var q=p.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"");return/^[\],:{}\s]*$/.test(q)?eval("("+p+")"):{}},k=t.JSON&&JSON.stringify&&JSON.parse;ContextHub.Utils.JSON.stringify=k?JSON.stringify:c;ContextHub.Utils.JSON.parse=function(p){try{var q=(k?JSON.parse:h)(p)}catch(y){q={}}return q}})(ContextHubJQ,window);ContextHub.console.log("[loading] contexthub.constants - ContextHub.constants.js");
(function(m){ContextHub.Constants=m.extend(!0,ContextHub.Constants,{EVENT_NAMESPACE:"ch",EVENT_ALL_STORES_READY:"all-stores-ready",EVENT_STORES_PARTIALLY_READY:"stores-partially-ready",EVENT_STORE_REGISTERED:"store-registered",EVENT_STORE_READY:"store-ready",EVENT_STORE_UPDATED:"store-updated",PERSISTENCE_CONTAINER_NAME:"ContextHubPersistence",SERVICE_RAW_RESPONSE_KEY:"/_/raw-response",SERVICE_RESPONSE_TIME_KEY:"/_/response-time",SERVICE_LAST_URL_KEY:"/_/url",IS_CONTAINER_EXPANDED:"/_/container-expanded"});
ContextHub.console.time("contexthub.js");ContextHub.console.timeStamp("contexthub.start")})(ContextHubJQ);ContextHub.console.log("[loading] contexthub.constants - ContextHub.constants.deprecated.js");
(function(m){window.ContextHub=window.ContextHub||{};ContextHub.Constants=m.extend(!0,ContextHub.Constants,{EVENT_INITIALIZED:ContextHub.Constants.EVENT_ALL_STORES_READY,EVENT_REGISTER:ContextHub.Constants.EVENT_STORE_REGISTERED,EVENT_DATA_UPDATE:ContextHub.Constants.EVENT_STORE_UPDATED,CONTAINER_VISIBLE:ContextHub.Constants.IS_CONTAINER_EXPANDED,EVENT_CONFIG_LOADED:""})})(ContextHubJQ);
(function(m,t){t.ContextHub.Shared=t.ContextHub.Shared||{};ContextHub.Shared.pad=function(d,c){d=String(d);c=(c||2)-d.length;0<c&&(d=String(Math.pow(10,Math.min(c,20))).slice(1)+d);return d};var n={};ContextHub.Shared.timers={start:function(d){d=d||"id"+Math.random();n[d]=(new Date).getTime();return d},finish:function(d){return(d=n[d])?(new Date).getTime()-d:0}};ContextHub.Shared.timestamp=function(){var d=new Date,c=d.getYear()+1900,h=ContextHub.Shared.pad(d.getMonth()+1),k=ContextHub.Shared.pad(d.getDate()),
p=ContextHub.Shared.pad(d.getHours()),q=ContextHub.Shared.pad(d.getMinutes()),y=ContextHub.Shared.pad(d.getSeconds());d=ContextHub.Shared.pad(d.getMilliseconds(),3);return c+"-"+h+"-"+k+" "+p+":"+q+":"+y+"."+d};ContextHub.Shared.uuid=function(){function d(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return d()+d()+"-"+d()+"-"+d()+"-"+d()+"-"+d()+d()+d()};ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.shared - ContextHub.Shared.js")})(ContextHubJQ,
window);ContextHubJQ(function(){ContextHub.console.log(ContextHub.Shared.timestamp(),"[event] DOM ready")});ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.shared - ContextHub.Shared.CookieContainer.js");
(function(m,t){t.ContextHub.Shared=t.ContextHub.Shared||{};t.ContextHub.Shared.CookieContainer={};var n=t.ContextHub.Shared.CookieContainer,d=function(c){c=(ContextHub.Utils.Cookie.getItem(c.trim())||"").split(/\|/);var h={};m.each(c,function(k,p){(p=p.match(/(^.*?):=(.*)/))&&3===p.length&&(p.shift(),k=p.shift(),p=p.shift(),h[k]=decodeURIComponent(p))});return h};n.setItem=function(c,h,k){c=c.trim();var p=d(c),q=[];0>=c.length||(null===k||"undefined"===typeof k?delete p[h]:p[h]=k,m.each(p,function(y,
x){q.push(y+":\x3d"+encodeURIComponent(x))}),ContextHub.Utils.Cookie.setItem(c,q.join("|")))};n.getItem=function(c,h){return d(c)[h]};n.removeItem=function(c,h){n.setItem(c,h,null)}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.cookie.js");
(function(m,t){t.ContextHub.Utils=t.ContextHub.Utils||{};var n={path:"/",expires:void 0,domain:void 0,secure:!1,trimUndefined:!0},d=function(q,y){var x=m.type(y);"object"===x&&m.isArray(y)&&(x="array");switch(x){case "regexp":return y.test(q);case "string":return q===y;case "function":return!0===y(q);case "array":var D=!1;m(y).each(function(F,J){D=d(q,J);return!D});return D;default:return!1}},c=function(q){var y="undefined"===typeof q,x=t.document.cookie?t.document.cookie.split(/;/):[],D=[];m(x).each(function(F,
J){F=decodeURIComponent(J.split(/=/)[0].trim());F.length&&-1===m.inArray(F,D)&&(y||d(F,q))&&D.push(F)});return D.sort()},h=function(q,y,x){if("undefined"===typeof q)return!1;var D=m.type(y);x=m.extend(!0,{},n,x);y=!x.trimUndefined||"undefined"!==D&&"null"!==D?y:"";switch(m.type(x.expires)){case "date":break;case "number":D=new Date;D.setDate(D.getDate()+x.expires);x.expires=D;break;default:x.expires=void 0}q=[encodeURIComponent(q),"\x3d",encodeURIComponent(y),x.expires?"; expires\x3d"+x.expires.toUTCString():
"",x.domain?"; domain\x3d"+x.domain:"",x.path?"; path\x3d"+x.path:"",x.secure?"; secure":""].join("");return t.document.cookie=q},k=function(q){var y=t.document.cookie?t.document.cookie.split(/;/):[],x=null;m(y).each(function(D,F){D=decodeURIComponent(F.split(/=/).slice(1).join("\x3d").trim());decodeURIComponent(F.split(/=/)[0].trim())===q&&(x=D);return null===x});return x},p=function(q,y){h(q,"",m.extend({},y,{expires:-1}))};ContextHub.Utils.Cookie={setItem:h,getItem:k,getAllItems:function(q){var y=
{};m(c(q)).each(function(x,D){x=k(D);var F=m.type(x);"undefined"!==F&&"null"!==F&&(y[D]=x)});return y},getKeys:c,exists:function(q){return null!==k(q)},removeItem:p,vanish:function(q,y){m(c(q)).each(function(x,D){p(D,y)})}}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.json.js");
(function(m,t){t.ContextHub.Utils=t.ContextHub.Utils||{};var n=function(q){var y=null;"string"===typeof q&&(y=q.split(/(?:\s*\/+\s*)+/),""===y[0]&&y.shift(),y.length&&""===y[y.length-1]&&y.pop());return y},d=function(q,y){var x=null;if(y=n(y))for(x=q,q=0;q<y.length;q++)if(x=x[y[q]],null===x||"undefined"===typeof x){x=null;break}return x},c=function(q,y,x){y=n(y);x&&(q=m.extend(!0,{},q));if(y){var D={object:!0,array:!0},F=q,J=[q];m.each(y.slice(0,-1),function(ja,ka){F=F[ka];J.push(F);return!0===D[m.type(F)]});
if(F)for(delete F[y.slice(-1)],y.pop(),J.pop();J&&y&&0<J.length&&0<y.length;){x=y.pop();F=J.pop();var I=F[x],O=m.type(I);if("object"!==O&&"array"!==O||!m.isEmptyObject(I))break;else delete F[x]}}return q},h=/^\[object (DIV|DOM|CSS|HTML|NamedNode|Node|Window)/,k=function(q){return q&&(q instanceof t.Node||q instanceof m||"function"===typeof q.css||"function"===typeof q.toString&&h.test(q.toString()))?!0:!1},p=function(q,y,x,D,F){y=y||"/";F=F||0;var J=[],I=m.type(q);"object"===I&&k(q)&&(I="invalid");
if("object"===I||"array"===I){D&&(q=ContextHub.Utils.JSON.tree.cleanup(q));for(var O in q)if(q.hasOwnProperty(O)){I=q[O];var ja=y+O,ka=m.type(I);J.push(ja);"object"===ka&&k(I)&&(ka="invalid");"object"!==ka&&"array"!==ka||m.merge(J,p(I,ja+"/",null,D,F+1))}}return 0===F?"function"===typeof x?J.sort(x):J.sort():J};m.extend(ContextHub.Utils.JSON,{tree:{sanitizeKey:n,setItem:function(q,y,x,D){y=n(y);D&&(q=m.extend(!0,{},q));if(y){var F=q,J={};m.each(y,function(I,O){J=F;I=m.type(F[O]);"object"!==I&&"array"!==
I&&(F[O]={});F=F[O]});J[y.slice(-1)]=x}return q},getItem:d,removeItem:c,getKeys:p,cleanup:function(q,y){y&&(q=m.extend(!0,{},q));y=p(q,null,function(x,D){var F=x.split(/\//).length,J=D.split(/\//).length;return F!==J?F>J?-1:1:x===D?0:x>D?1:-1});m.each(y,function(x,D){x=d(q,D);var F=m.type(x);"object"!==F&&"array"!==F||!m.isEmptyObject(x)||(q=c(q,D))});return q},addAllItems:function(q,y){return m.extend(!0,{},q,y)}}})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.eventing.js");
(function(m,t){t.ContextHub.Utils=t.ContextHub.Utils||{};var n=function(){var N=m.grep([t.requestAnimationFrame,t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,t.oRequestAnimationFrame],m.isFunction).shift();if(!N){var R=0;N=function(ca){var wa=(new Date).getTime(),ha=Math.max(0,16-(wa-R)),la=t.setTimeout(function(){ca(wa+ha)},ha);R=wa+ha;return la}}return N}();(function(){var N=m.grep([t.cancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,
t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.oCancelRequestAnimationFrame],m.isFunction).shift();N||(N=function(R){t.clearTimeout(R)});return N})();var d={},c={},h=function(N,R,ca){N=(N||"").replace(/^ *| *$/g,"");if(N.length){ca=ca||{};ca.hasOwnProperty("defer")||(ca.defer=this.config.defer);var wa=ca.defer;ca=ca._||{};N="/"+this.config.namespace+"/"+N;var ha=ContextHub.Utils.JSON.tree.getItem(this.queue,N)||{};ha.hasOwnProperty("executeAt")||(ha.executeAt=null);ha.hasOwnProperty("data")||
(ha.data=[]);for(var la in ca)ca.hasOwnProperty(la)&&"undefined"===typeof ha[la]&&(ha[la]=ca[la]);la=(new Date).getTime()+wa;if(!ha.executeAt||0===wa||ha.executeAt>la)ha.executeAt=la;m.isEmptyObject(R)||ha.data.push(R);this.queue=ContextHub.Utils.JSON.tree.setItem(this.queue,N,ha);this.eventingCounter=wa?this.eventingCounter:0;R=!0===this.queueIsEmpty;this.queueIsEmpty=!1;R&&this.eventingMonitor()}},k=function(){return this.queue},p=function(N,R){N.list.push(R.key);N.hash[R.key]=R},q=function(N){for(var R=
m.extend(!0,{},N,{data:[]}),ca={},wa=function(Ua,Ma,La){var hb=Ua.key||"temp"+Math.random(),wb=ca[hb],tb=(wb||{}).old||null;ca[hb]=m.extend(!0,{},Ua);ca[hb]._idx=parseFloat(Ma+"."+(La||0));wb&&(ca[hb].old=tb)},ha=0;ha<N.data.length;ha++){var la=N.data[ha],ta=ContextHub.Utils.JSON.tree.getKeys(la.old),Ca=ContextHub.Utils.JSON.tree.getKeys(la.value);if(ta.length||Ca.length){var Oa="/"===la.key?"":la.key,Ra=1,Ka;for(Ka=0;Ka<ta.length;Ka++,Ra++){var Ta=ta[Ka];wa({key:Oa+Ta,value:null,old:ContextHub.Utils.JSON.tree.getItem(la.old,
Ta),action:"remove"},ha,Ra)}for(Ka=0;Ka<Ca.length;Ka++,Ra++)Ta=Ca[Ka],wa({key:Oa+Ta,value:ContextHub.Utils.JSON.tree.getItem(la.value,Ta),old:ContextHub.Utils.JSON.tree.getItem(la.old||{},Ta),action:"set"},ha,Ra)}else ta=!(!la.key||!la.action)&&!/^\/_\//.test(la.key),Ca=ca[la.key]||{},ta&&Ca.old===la.value?delete ca[la.key]:wa(la,ha)}ca=m.map(ca,function(Ua){return Ua}).sort(function(Ua,Ma){return Ua._idx-Ma._idx});N={set:{list:[],hash:{}},removed:{list:[],hash:{}},all:{list:[],hash:{}}};m.each(ca,
function(Ua,Ma){delete Ma._idx;Ma.key&&Ma.action&&(p(this.keys.all,Ma),"set"===Ma.action&&p(this.keys.set,Ma),"remove"===Ma.action&&p(this.keys.removed,Ma))}.bind({keys:N}));R.data=ca;R.keys=N;return R},y=function(N){0!==N.indexOf(this.config.namespace+"-")&&(N=this.config.namespace+"-"+N);-1!==N.indexOf(".")&&(N=N.split(/\./).shift());return!0===d[N]},x=function(){this.running&&!this.queueIsEmpty&&(0===this.eventingCounter++%this.periodicity&&m.each(this.queue[this.config.namespace]||{},function(N,
R){if(!R.paused&&(new Date).getTime()>R.executeAt){var ca=this.config.namespace+"-"+N,wa=R.duration?"("+R.duration+") ":"",ha=ContextHub.debug(),la=m(this.config.broadcast);if(!this.windowBroadcast.initialized){var ta=t;var Ca=t.parent;try{for(;ta.location.origin===Ca.location.origin&&(ta=Ca,Ca=Ca.parent,ta!==t.top););}catch(Ta){}try{this.windowBroadcast.top=this.config.broadcast===ta?null:ta}catch(Ta){}this.windowBroadcast.initialized=!0}ta=this.windowBroadcast.top;R=q(R);R.event=ca;R.overlay&&(R=
m.extend(!0,R,R.overlay));delete (this.queue[this.config.namespace]||{})[N];this.queueIsEmpty=m.isEmptyObject(this.queue[this.config.namespace]);if(!R.muteWhenNoData||R.muteWhenNoData&&0<R.data.length){Ca=ca.split(/:/);N=N.split(/:/);for(var Oa=Ca.length;0<Oa;Oa--){R.channel=N.slice(0,Oa).join(":");var Ra=Ca.slice(0,Oa).join(":");la.trigger(Ra,R);if(ta&&ta.document){var Ka=ta.document.createEvent("Event");Ka.initEvent(Ra,!0,!0);Ka.data=R;ta.dispatchEvent(Ka)}ha&&ContextHub.console.debug(ContextHub.Shared.timestamp(),
Ra,"-",R);d[Ra]=!0}ContextHub.console.log(ContextHub.Shared.timestamp(),"[event]",ca,wa+"-",R)}}}.bind(this)),n(this.eventingMonitor))},D=function(){this.running=!0;this.eventingMonitor()},F=function(){this.running=!1},J=function(){return this.running},I=function(){this.queue={}},O=function(N,R,ca){this.queue=ContextHub.Utils.JSON.tree.setItem(this.queue,"/"+this.config.namespace+"/"+N+"/"+R,ca)},ja=function(N){O.call(this,N,"executeAt",0)},ka=function(N){O.call(this,N,"paused",!0)},W=function(N){O.call(this,
N,"paused",void 0)},fa=function(N){return!0===ContextHub.Utils.JSON.tree.getItem(this.queue,"/"+this.config.namespace+"/"+N+"/paused")},Ea=function(N,R,ca){ca=ca?"."+ca:"";N="string"===typeof N?N.split(/ /):N;for(var wa=0;wa<N.length;wa++){var ha=N[wa];0!==ha.indexOf(R+"-")&&(N[wa]=R+"-"+ha+ca)}return N.join(" ")},sa=function(N,R,ca,wa){N=Ea(N,this.config.namespace,ca);m(this.config.broadcast).on(N,R);c[N]=!0;if(wa){var ha=!1,la=this;m.each(N.split(/ /),function(ta,Ca){ha=y.call(la,Ca);return!0!==
ha});ha&&R()}},oa=function(N,R,ca,wa){var ha=!1;N=Ea(N,this.config.namespace,ca);if(wa){var la=this;m.each(N.split(/ /),function(ta,Ca){ha=y.call(la,Ca);return!0!==ha})}ha?R():(m(this.config.broadcast).one(N,R),c[N]=!0)},ya=function(N,R){N=Ea(N,this.config.namespace,R);m(this.config.broadcast).off(N);delete c[N]},Qb=function(){for(var N in c)c.hasOwnProperty(N)&&ContextHub.eventing.off(N);c={}};ContextHub.Utils.Eventing=function(N){this.config=m.extend(!0,{},ContextHub.Utils.Eventing.defaultConfig,
N);this.eventingCounter=0;this.periodicity=Math.floor(Math.max(16,this.config.periodicity)/16);this.eventingMonitor=x.bind(this);this.windowBroadcast={top:null,initialized:!1};this.queue={};this.config.autoStart?D.call(this):this.running=!1;return{log:this.log,trigger:h.bind(this),getQueue:k.bind(this),isRunning:J.bind(this),enableEventing:D.bind(this),disableEventing:F.bind(this),alreadyTriggered:y.bind(this),clearQueue:I.bind(this),flush:ja.bind(this),pause:ka.bind(this),resume:W.bind(this),isPaused:fa.bind(this),
once:oa.bind(this),on:sa.bind(this),off:ya.bind(this),unbindAllHandlers:Qb.bind(this),namespace:this.config.namespace,broadcast:this.config.broadcast,handledEvents:c}};ContextHub.Utils.Eventing.defaultConfig={autoStart:!0,defer:100,periodicity:192,namespace:ContextHub.Constants.EVENT_NAMESPACE,broadcast:t}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.persistence.js");
(function(m,t){function n(q,y,x){this.cachedTree=null;return m.extend(!0,{},{name:q,isSupported:x||function(){return!0},getInterface:function(D){D=y.call(this,D);return{name:q,getItem:D.getItem,setItem:D.setItem,removeItem:D.removeItem,getKeys:D.getKeys,getTree:D.getTree}},_self:this})}t.ContextHub.Utils=t.ContextHub.Utils||{};var d=/^\/*store($|\/)/,c=/^\/*store\/(emulators|surferinfo|segmentation)($|\/)/;n.prototype.setItem=function(q,y,x,D){if((x||"").match(d)&&!(x||"").match(c)&&ContextHub.isOptedOut())return!1;
y=this.cachedTree||y();y=ContextHub.Utils.JSON.tree.setItem(y,x,D);q(y);this.cachedTree=y;return!0};n.prototype.getItem=function(q,y){this.cachedTree=q=this.cachedTree||q();return ContextHub.Utils.JSON.tree.getItem(q,y)};n.prototype.removeItem=function(q,y,x){if((x||"").match(d)&&!(x||"").match(c)&&ContextHub.isOptedOut())return!1;y=this.cachedTree||y();y=ContextHub.Utils.JSON.tree.removeItem(y,x);q(y);this.cachedTree=null;return!0};var h=new n("null",function(){return{setItem:function(){return!1},
getItem:function(){return{}},removeItem:function(){},getKeys:function(){return[]},getTree:function(){return{}}}}),k=function(){var q=!1;m(m.merge([this.config.mode],this.config.fallback||[])).each(function(y,x){x&&x.isSupported()&&(q=!0,this.config.mode=x);return!q}.bind(this));q||(this.config.mode=h);return q};ContextHub.Utils.Persistence=function(q){this.config=m.extend(!0,{},ContextHub.Utils.Persistence.defaultConfig,q);q=this.config.mode;q={initialized:k.call(this),usingFallback:this.config.mode!==
q,window:this.config.window,container:this.config.container};m.extend(q,this.config.mode.getInterface.call(this.config.mode._self,this.config));return q};ContextHub.Utils.Persistence.prototype.PersistenceMode=n;ContextHub.Utils.Persistence.Modes={};var p=function(q,y){var x=n.prototype.setItem.bind(this,q,y),D=n.prototype.getItem.bind(this,y);q=n.prototype.removeItem.bind(this,q,y);return{setItem:x,getItem:D,removeItem:q,getKeys:function(){var F=y();return ContextHub.Utils.JSON.tree.getKeys(F)},getTree:y}};
ContextHub.Utils.Persistence.Modes.LOCAL=new n("local",function(q){var y=q.container,x=q.window.localStorage;return p.call(this,function(D){D=ContextHub.Utils.JSON.stringify(D);x.setItem(y,D)},function(){var D=null;try{D=x.getItem(y)}catch(F){D=null}D=ContextHub.Utils.JSON.parse(D);return"object"===m.type(D)?D:{}})},function(){var q="contexthub.test."+this.name;try{var y=t.localStorage;y.setItem(q,q);var x=y.getItem(q)===q;y.removeItem(q)}catch(D){x=!1}return x});ContextHub.Utils.Persistence.Modes.SESSION=
new n("session",function(q){var y=q.container,x=q.window.sessionStorage;return p.call(this,function(D){D=ContextHub.Utils.JSON.stringify(D);x.setItem(y,D)},function(){var D=x.getItem(y);D=ContextHub.Utils.JSON.parse(D);return"object"===m.type(D)?D:{}})},function(){var q="contexthub.test."+this.name;try{var y=t.sessionStorage;y.setItem(q,q);var x=y.getItem(q)===q;y.removeItem(q)}catch(D){x=!1}return x});ContextHub.Utils.Persistence.Modes.COOKIE=new n("cookie",function(q){var y=q.container,x=ContextHub.Utils.Cookie;
return p.call(this,function(D){D=ContextHub.Utils.JSON.stringify(D);x.setItem(y,D)},function(){var D=x.getItem(y);D=ContextHub.Utils.JSON.parse(D);return"object"===m.type(D)?D:{}})},function(){var q="contexthub.test."+this.name;t.document.cookie=q+"\x3d1";var y=-1!==t.document.cookie.indexOf(q);t.document.cookie=q+"\x3d; expires\x3dThu, 01-Jan-1970 00:00:01 GMT";return y});ContextHub.Utils.Persistence.Modes.WINDOW=new n("window",function(q){var y=q.container,x=q.window;return p.call(this,function(D){var F=
ContextHub.Utils.JSON.parse(x.name);F[y]=D;x.name=ContextHub.Utils.JSON.stringify(F)},function(){var D=ContextHub.Utils.JSON.parse(x.name)[y];return"object"===m.type(D)?D:{}})});ContextHub.Utils.Persistence.defaultConfig={container:ContextHub.Constants.PERSISTENCE_CONTAINER_NAME,window:t,mode:ContextHub.Utils.Persistence.Modes.LOCAL,fallback:[ContextHub.Utils.Persistence.Modes.SESSION,ContextHub.Utils.Persistence.Modes.WINDOW]}})(ContextHubJQ,window);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.storeCandidates.js");
(function(m,t){t.ContextHub.Utils=t.ContextHub.Utils||{};var n={},d=function(){return!0};ContextHub.Utils.storeCandidates={registerStoreCandidate:function(c,h,k,p){c={store:c,priority:k,applies:p||d};n[h]=n[h]||[];h=n[h];h.push(c);h.sort(function(q,y){return y.priority-q.priority})},getStoreFromCandidates:function(c){var h=n[c.type]||[],k;for(k=0;k<h.length;k++){var p=h[k];if(p.applies(p.store,p.priority))return p.store}!0===c.required&&ContextHub.console.error('No suitable store implementation found for type: "'+
c.type+'".')},getRegisteredCandidates:function(c){var h=n;c&&(h=h[c]||[]);return h},getSupportedStoreTypes:function(){var c=[];m.each(n,function(h){c.push(h)});return c.sort()}}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.utils - ContextHub.Utils.inheritance.js");
(function(m){m.ContextHub.Utils=m.ContextHub.Utils||{};ContextHub.Utils.inheritance={inherit:function(t,n){t.prototype=new n;t.prototype.constructor=n;var d={},c;t.prototype.uber=function(h){d[h]=d[h]||0;var k,p,q;if(k=d[h]){for(q=n.prototype;k;)q=q.constructor.prototype,k--;q&&q[h]===c&&(q=q.constructor.prototype||{});k=q[h]}else{for(q=this;q&&!q.hasOwnProperty(h);)q=q.__proto__||q.constructor.prototype;k=q[h];k===this[h]&&(k=(q.__proto__||q.constructor.prototype)[h])}d[h]++;c=k;"function"===typeof k&&
(p=k.apply(this,Array.prototype.slice.apply(arguments,[1])));c=null;d[h]--;return p};return t},newInstance:function(t,n){return new (t.bind.apply(t,[null].concat([].slice.call(n))))}}})(window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.kernel - ContextHub.js");
(function(m,t){"undefined"===typeof t.ContextHubKernelConfig&&ContextHub.console.error("[-] ContextHub configuration is not set!");t.ContextHub=m.extend({version:"0.4.28-20220311-1228"},t.ContextHub);var n={},d=[],c=[],h=new ContextHub.Utils.Persistence,k=new ContextHub.Utils.Eventing(t.ContextHubKernelConfig.eventing),p=null,q=function(x){var D=ContextHub.persistence,F=ContextHub.Utils.JSON.tree.sanitizeKey(x);if(F){var J=F.shift();"store"===J&&(J=F.shift());if(J=ContextHub.getStore(J))D=J,x="/"+
F.join("/")}return{storage:D,storeProperty:x}},y=function(x){var D={},F=0,J=[];m.each(x,function(I,O){O&&(I=ContextHub.Utils.JSON.tree.sanitizeKey(O),"store"===I[0]?O="/"+I.slice(1).join("/"):I.unshift("store"),I="/"+I.join("/"),I=ContextHub.getItem(I),null!==I&&(F++,D=ContextHub.Utils.JSON.tree.setItem(D,O,I),J.push(O)))});D._length=F;D._keys=J;return D};m.extend(ContextHub,{persistence:h,eventing:k,registerStore:function(x,D){if("object"===m.type(D)&&(n=n||{},!n[x])){n[x]=D;ContextHub.console.timeStamp('registering "'+
x+'"');var F=D.getKeys(),J={keys:{all:{hash:{},list:F}}};m.each(F,function(I,O){J.keys.all.hash[O]=!0});this.eventing.trigger(ContextHub.Constants.EVENT_STORE_REGISTERED+":"+x,{},{defer:0,_:{action:"store-registered",store:x,registeredAt:(new Date).getTime(),overlay:J}});D.queryService||D.announceReadiness()}},getAllStores:function(){return n},getStore:function(x){return"string"===m.type(x)&&x.length?ContextHub.Utils.JSON.tree.getItem(n,x):null},set:function(x,D){this.setItem("/store/"+x,D)},get:function(x){return this.getItem("/store/"+
x)},getItem:function(x){x=q(x);return x.storage.getItem(x.storeProperty)},setItem:function(x,D){x=q(x);x.storage.setItem(x.storeProperty,D)},removeItem:function(x){x=q(x);x.storage.removeItem(x.storeProperty)},cleanAllStores:function(){var x=k.isPaused();this.eventing.pause();m.each(n,function(D,F){F.clean()});x||this.eventing.resume()},resetAllStores:function(x){var D=k.isPaused();ContextHub.isOptedOut(!0);ContextHub.eventing.pause();m.each(n,function(F,J){J.reset(x)});D||ContextHub.eventing.resume()},
sync:function(x,D,F,J){"string"===m.type(x)&&(x=[x]);var I=[];m.each(x,function(W,fa){W="/"+ContextHub.Utils.JSON.tree.sanitizeKey(fa).join("/");I.push(W)});x=I;D=D||function(){};F=F||function(){};var O=y(x);if(O._length===x.length)D(O);else{var ja=0,ka=!1;O=function(W){if(ka)return!0;var fa=y(x),Ea=null;"undefined"===m.type(W)&&(Ea=F);fa._length===x.length&&(Ea=D,t.clearTimeout(ja));Ea&&(ka=!0,Ea(fa));return ka};ja=t.setTimeout(O,J);d.push(O)}},bind:function(x,D,F,J){"string"===m.type(x)&&(x=[x]);
var I=[];m.each(x,function(W,fa){W="/"+ContextHub.Utils.JSON.tree.sanitizeKey(fa).join("/");I.push(W)});x=I;D=D||function(){};F=F||function(){};var O=y(x),ja=!0;O._length===x.length&&(ja=!1,D(O));var ka=0;O=function(W,fa){if(fa){var Ea={};W=!0;m.each(fa,function(sa){Ea=ContextHub.Utils.JSON.tree.setItem(Ea,sa,!0)});for(fa=0;fa<x.length;fa++)if(ContextHub.Utils.JSON.tree.getItem(Ea,x[fa])){W=!1;break}if(W)return}fa=y(x);W=F;fa._length===x.length&&(W=D,t.clearTimeout(ka));W(fa)};ja&&(ka=t.setTimeout(O,
J));c.push(O)},isOptedOut:function(x){x&&(p=null);null===p&&(p=null!==ContextHub.Utils.Cookie.getItem("cq-opt-out"));return p}});ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED,function(x,D){m.each(d||[],function(J,I){I&&I(J)&&(delete d[J],d=m.grep(d,m.isFunction))});if((c||[]).length){var F={};D.keys&&m.each(D.keys.all.list,function(J,I){F["/"+D.store+I]=!0});m.each(c||[],function(J,I){I&&I(J,F)})}},"sync-bind")})(ContextHubJQ,window);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.kernel - task.stores-initialization-watcher.js");
(function(m,t){var n={},d=t.setTimeout(function(){var c={};m.each(t.ContextHubKernelConfig.stores,function(h){n[h]||(c[h]=!0)});ContextHub.eventing.trigger(ContextHub.Constants.EVENT_STORES_PARTIALLY_READY,{},{defer:0,_:{wasReadyAt:(new Date).getTime(),storesReady:n,storesNotReady:c}});ContextHub.eventing.off(ContextHub.Constants.EVENT_STORE_READY,"initialization-watcher")},t.ContextHubKernelConfig.initializationTimeout);ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_READY,function(c,h){var k=
n[h.store]=!0;m.each(t.ContextHubKernelConfig.stores,function(p,q){!n[p]&&q.required&&(k=!1)});k&&(t.clearTimeout(d),ContextHub.console.timeStamp("contexthub initialized"),ContextHub.eventing.off(c.type,"initialization-watcher"),ContextHub.eventing.trigger(ContextHub.Constants.EVENT_ALL_STORES_READY,{},{defer:0,_:{wasReadyAt:(new Date).getTime(),stores:n}}))},"initialization-watcher")})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.generic-stores - ContextHub.Store.Core.js");
(function(m,t){t.ContextHub.Store=t.ContextHub.Store||{};var n=new ContextHub.Utils.Persistence.prototype.PersistenceMode("memory",function(d){var c=d.container,h=d.storage,k=function(){var q=("object"===m.type(h)?h:{})[c];return"object"===m.type(q)?q:{}};d=function(q){h="object"===m.type(h)?h:{};h[c]=q};var p=ContextHub.Utils.Persistence.prototype.PersistenceMode.prototype;return{setItem:p.setItem.bind(this,d,k),getItem:p.getItem.bind(this,k),removeItem:p.removeItem.bind(this,d,k),getKeys:function(){return ContextHub.Utils.JSON.tree.getKeys(k())},
getTree:k}});ContextHub.Store.Core=function(){};ContextHub.Store.Core.prototype.init=function(d,c){this.config=m.extend(!0,{},ContextHub.Store.Core.defaultConfig,c);this.name=d;this.eventChannel=ContextHub.Constants.EVENT_STORE_UPDATED+":"+this.name;this.storeDataKey="/store/"+this.name;this.data={};this.references={};this.config.persistence||(this.config.persistence=new ContextHub.Utils.Persistence({container:"data",mode:n,storage:this.data}));this.config.eventing||(d=function(){},this.config.eventing=
{trigger:d,isPaused:d,pause:d,resume:d});this.persistence=this.config.persistence;this.eventing=this.config.eventing;d=this.isEventingPaused();this.pauseEventing();m.each(this.config.initialValues||{},function(h,k){this.getItem(h)||this.setItem(h,k)}.bind(this));d||this.resumeEventing()};ContextHub.Store.Core.defaultConfig={eventDeferring:32,eventing:ContextHub.eventing,persistence:ContextHub.persistence};ContextHub.Store.Core.prototype.clean=function(){this.removeItem("/")};ContextHub.Store.Core.prototype.reset=
function(d){var c=this.isEventingPaused();this.pauseEventing();d||this.clean();this.addAllItems(this.config.initialValues||{});c||this.resumeEventing()};ContextHub.Store.Core.prototype.setItem=function(d,c,h){d=this.resolveReference(d);var k=this.getItem(d),p=!0,q=typeof c;typeof k===q&&("string"===q||"number"===q||"boolean"===q?p=k!==c:(p=ContextHub.Utils.JSON.stringify(k),q=ContextHub.Utils.JSON.stringify(c),p=p.length!==q.length||p!==q));p&&this.persistence.setItem(this.storeDataKey+"/"+d,c)&&
!(h||{}).silent&&this.eventing.trigger(this.eventChannel,{key:d,value:c,old:k,action:"set"},m.extend(!0,{defer:this.config.eventDeferring,_:{store:this.name,muteWhenNoData:!0}},h));return p};ContextHub.Store.Core.prototype.getItem=function(d){d=this.resolveReference(d);return this.persistence.getItem(this.storeDataKey+"/"+d)};ContextHub.Store.Core.prototype.removeItem=function(d,c){d=this.resolveReference(d);var h=!1,k=this.getItem(d);null!==k&&(h=!0,this.persistence.removeItem(this.storeDataKey+
"/"+d)&&!(c||{}).silent&&this.eventing.trigger(this.eventChannel,{key:d,value:null,old:k,store:this.name,action:"remove"},m.extend(!0,{defer:this.config.eventDeferring,_:{store:this.name,muteWhenNoData:!0}},c)));return h};ContextHub.Store.Core.prototype.getKeys=function(d){var c=this.persistence.getTree();c=ContextHub.Utils.JSON.tree.getItem(c,this.storeDataKey)||{};d||delete c._;return ContextHub.Utils.JSON.tree.getKeys(c)};ContextHub.Store.Core.prototype.getTree=function(d){var c=this.persistence.getItem(this.storeDataKey)||
{};d||delete c._;return c};ContextHub.Store.Core.prototype.addAllItems=function(d,c){var h=m.type(d),k=this,p=!1;"object"!==h&&"array"!==h||m.each(d,function(q,y){q=k.setItem(q,y,c);p=p||q});return p};ContextHub.Store.Core.prototype.addReference=function(d,c){d=ContextHub.Utils.JSON.tree.sanitizeKey(d);var h=ContextHub.Utils.JSON.tree.sanitizeKey(c);c=!1;d&&h&&(d="/"+d.join("/"),h="/"+h.join("/"),d!==h&&(c=!0,this.references[d]=h));return c};ContextHub.Store.Core.prototype.removeReference=function(d){var c=
ContextHub.Utils.JSON.tree.sanitizeKey(d);d=!1;c&&(d=!0,c="/"+c.join("/"),delete this.references[c]);return d};ContextHub.Store.Core.prototype.getReferences=function(){return this.references};ContextHub.Store.Core.prototype.resolveReference=function(d,c){var h="/"+ContextHub.Utils.JSON.tree.sanitizeKey(d).join("/");if(!m.isEmptyObject(this.references)&&d){d=c||5;for(var k=h;0<d&&k;){d--;k=ContextHub.Utils.JSON.tree.sanitizeKey(h);var p="";c=k.slice(0);for(var q=0;q<k.length&&!this.references[p];q++)p+=
"/"+k[q],c.shift();if(k=this.references[p])k=k+"/"+c.join("/"),k="/"+ContextHub.Utils.JSON.tree.sanitizeKey(k).join("/");h=k||h}}return h};ContextHub.Store.Core.prototype.pauseEventing=function(){this.eventing&&this.eventing.pause(this.eventChannel)};ContextHub.Store.Core.prototype.resumeEventing=function(){this.eventing&&this.eventing.resume(this.eventChannel)};ContextHub.Store.Core.prototype.isEventingPaused=function(){return this.eventing&&this.eventing.isPaused(this.eventChannel)};ContextHub.Store.Core.prototype.announceReadiness=
function(){var d=this.name,c=null;ContextHub.console.timeStamp('"'+d+'" ready');if(this instanceof ContextHub.Store.JSONPStore){var h=this.getKeys();c={keys:{all:{hash:{},list:h}}};m.each(h,function(k,p){c.keys.all.hash[p]=!0})}this.eventing.trigger(ContextHub.Constants.EVENT_STORE_READY+":"+d,{},{defer:0,_:{action:"ready",store:d,wasReadyAt:(new Date).getTime(),duration:this.duration||0,overlay:c}})};ContextHub.Store.Core.prototype.onUpdate=function(d,c){var h=this.eventChannel;if("function"===typeof c)ContextHub.eventing.on(h,
c.bind(this),d);else ContextHub.eventing.off(h,d)}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.generic-stores - ContextHub.Store.SessionStore.js");
(function(m,t){t.ContextHub.Store=t.ContextHub.Store||{};ContextHub.Store.SessionStore=function(){};ContextHub.Store.SessionStore.defaultConfig={eventDeferring:32,persistence:null,eventing:ContextHub.eventing};ContextHub.Utils.inheritance.inherit(ContextHub.Store.SessionStore,ContextHub.Store.Core);ContextHub.Store.SessionStore.prototype.init=function(n,d){this.config=m.extend(!0,{},this.config,ContextHub.Store.SessionStore.defaultConfig,d);this.uber("init",n,this.config)}})(ContextHubJQ,window);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.generic-stores - ContextHub.Store.PersistedStore.js");
(function(m,t){t.ContextHub.Store=t.ContextHub.Store||{};ContextHub.Store.PersistedStore=function(){};ContextHub.Store.PersistedStore.defaultConfig={eventDeferring:32,persistence:ContextHub.persistence};ContextHub.Utils.inheritance.inherit(ContextHub.Store.PersistedStore,ContextHub.Store.Core);ContextHub.Store.PersistedStore.prototype.init=function(n,d){this.config=m.extend(!0,{},this.config,ContextHub.Store.PersistedStore.defaultConfig,d);this.uber("init",n,this.config)}})(ContextHubJQ,window);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.generic-stores - ContextHub.Store.JSONPStore.js");
(function(m,t){t.ContextHub.Store=t.ContextHub.Store||{};ContextHub.Store.JSONPStore=function(){};ContextHub.Utils.inheritance.inherit(ContextHub.Store.JSONPStore,ContextHub.Store.Core);ContextHub.Store.JSONPStore.prototype.init=function(n,d){this.config=m.extend(!0,{},this.config,ContextHub.Store.JSONPStore.defaultConfig,d);d=(n||"").replace(/[^a-zA-Z0-9]/g,"");if(0===d.length||d!==n){d="x"+d;for(var c=0,h=0;h<n.length;h++)c=~~((c<<5)-c+n.charCodeAt(h));c=1E4*Math.sin(c);d+=(c-Math.floor(c)).toString(36).substr(2,
5)}this.callbackName=d;this.uber("init",n,this.config);this.setUpdateInterval()};ContextHub.Store.JSONPStore.defaultConfig={eventDeferring:32,persistence:null,eventing:ContextHub.eventing,service:null};ContextHub.Store.JSONPStore.prototype.getServiceDetails=function(){return this.config.service};ContextHub.Store.JSONPStore.prototype.configureService=function(n,d){this.config.service=d?n:m.extend(!0,{},this.config.service,n)};ContextHub.Store.JSONPStore.prototype.resolveParameter=function(n){var d=
"boolean"===m.type(n)?String(n):n,c=d||"";n=["ContextHub.Paths."];"string"===m.type(d)&&(d=c.match(/\$\{(contexthub|variable):[^}]+}/g))&&m.each(d,function(h,k){h=k.slice(2,-1).split(/:/);var p=h.shift(),q=h.shift(),y=null;"contexthub"===p&&(y=ContextHub.persistence.getItem(q));"variable"===p&&q&&m.each(this.allowedPrefix,function(x,D){(x=0===q.indexOf(D))&&(y=ContextHub.Utils.JSON.tree.getItem(t,q.replace(/\./g,"/")));return!x});c=c.replace(k,y||"")}.bind({allowedPrefix:n}));return c};ContextHub.Store.JSONPStore.prototype.getServiceURL=
function(n){var d=this.getServiceDetails(),c=[],h=[];if("object"!==m.type(d))return null;if(d.jsonp){var k=!0===d.jsonp?"callback":(""+d.jsonp).replace(/[^a-zA-Z0-9_$]/g,"");d.params=d.params||{};d.params[k]="ContextHub.Callbacks."+this.callbackName}d.port=d.port&&80===d.port?"":d.port;d.host?("undefined"===typeof d.secure||"auto"===d.secure?c.push("//"):c.push(d.secure?"https://":"http://"),c.push(d.host),c.push(d.port?":"+d.port:"")):c.push(t.location.protocol+"//"+t.location.host);d.path=d.path||
"/";k=""+(n?this.resolveParameter(d.path):d.path);c.push(k);m.each(d.params||{},function(p,q){h.push(encodeURIComponent(p)+"\x3d"+encodeURIComponent(n?this.resolveParameter(q):q))}.bind(this));h.length&&(c.push(-1===k.indexOf("?")?"?":"\x26"),c.push(h.join("\x26")));return c.join("")};ContextHub.Store.JSONPStore.prototype.queryService=function(n){var d=this.getServiceURL(!0);if(d){var c=this.config.service.jsonp||this.config.service.script,h=this.isEventingPaused(),k=this;n&&this.removeItem("_",{silent:!0});
n=this.getItem(ContextHub.Constants.SERVICE_RESPONSE_TIME_KEY)||0;var p=this.getItem(ContextHub.Constants.SERVICE_LAST_URL_KEY);n+this.config.service.ttl>(new Date).getTime()&&p===d?(this.duration="cached",this.announceReadiness()):(this.setItem(ContextHub.Constants.SERVICE_LAST_URL_KEY,d),t.ContextHub.Callbacks=t.ContextHub.Callbacks||{},ContextHub.Callbacks[this.callbackName]=this.callbackFunction.bind(this),d={url:d,timeout:this.config.service.timeout,async:this.config.service.synchronous?!1:!0,
method:this.config.service.method||"GET"},c&&m.extend(d,{dataType:"script",cache:!0}),this.pauseEventing(),this.duration=0,ContextHub.Shared.timers.start(this.name),d=m.ajax(d),c||d.done(function(q,y,x){q=ContextHub.Utils.JSON.parse(x.responseText);ContextHub.Callbacks[k.callbackName](q)}),d.fail(function(q){k.failureHandler(q)}),d.always(function(){h||k.resumeEventing();k.announceReadiness()}))}};ContextHub.Store.JSONPStore.prototype.successHandler=function(n){return n};ContextHub.Store.JSONPStore.prototype.failureHandler=
function(n){ContextHub.console.log('There was an error while accessing JSONP service in the store "'+this.name+'", configuration: ',(this.config||{}).service,", error: ",n)};ContextHub.Store.JSONPStore.prototype.callbackFunction=function(n){this.duration=ContextHub.Shared.timers.finish(this.name)+"ms";this.setItem(ContextHub.Constants.SERVICE_RESPONSE_TIME_KEY,(new Date).getTime());n=this.successHandler(n);n=m.extend(!0,n instanceof Array?[]:{},n);this.setItem(ContextHub.Constants.SERVICE_RAW_RESPONSE_KEY,
n)};ContextHub.Store.JSONPStore.prototype.getRawResponse=function(){return this.getItem(ContextHub.Constants.SERVICE_RAW_RESPONSE_KEY)||{}};ContextHub.Store.JSONPStore.prototype.reset=function(n){this.uber("reset",n);this.queryService(!1)};ContextHub.Store.JSONPStore.prototype.setUpdateInterval=function(n){n=isNaN(n)?this.config.pollInterval:n;this.intervalHandler&&(t.clearInterval(this.intervalHandler),this.intervalHandler=null);if(0<n){var d=this;this.intervalHandler=t.setInterval(function(){d.queryService(!0)},
n)}}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.generic-stores - ContextHub.Store.PersistedJSONPStore.js");
(function(m,t){t.ContextHub.Store=t.ContextHub.Store||{};ContextHub.Store.PersistedJSONPStore=function(){};ContextHub.Store.PersistedJSONPStore.defaultConfig={eventDeferring:32,persistence:ContextHub.persistence};ContextHub.Utils.inheritance.inherit(ContextHub.Store.PersistedJSONPStore,ContextHub.Store.JSONPStore);ContextHub.Store.PersistedJSONPStore.prototype.init=function(n,d){this.config=m.extend(!0,{},this.config,ContextHub.Store.PersistedJSONPStore.defaultConfig,d);this.uber("init",n,this.config)}})(ContextHubJQ,
window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.Constants.js");
(function(m){m.extend(!0,ContextHub.Constants,{EVENT_SEGMENT_REGISTERED:"segment-engine:segment-registered",EVENT_SEGMENT_UNREGISTERED:"segment-engine:segment-unregistered",EVENT_SEGMENT_UPDATED:"segment-engine:segment-updated",EVENT_SCRIPT_REGISTERED:"segment-engine:script-registered",EVENT_SCRIPT_UNREGISTERED:"segment-engine:script-unregistered",EVENT_SCRIPT_UPDATED:"segment-engine:script-updated",EVENT_TEASER_REGISTERED:"segment-engine:teaser-registered",EVENT_TEASER_UNREGISTERED:"segment-engine:teaser-unregistered",
EVENT_TEASER_LOADED:"segment-engine:teaser-loaded"})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.js");
(function(m,t){t.ContextHub.SegmentEngine={version:"1.1.22-20230718-2320"};ContextHub.SegmentEngine.getResolvedSegments=function(n){return ContextHub.SegmentEngine.SegmentManager.getResolvedSegments(n)};ContextHub.SegmentEngine.getSegment=function(n){return ContextHub.SegmentEngine.SegmentManager.getSegment(n)};ContextHub.SegmentEngine.getComparisonOperators=function(){return ContextHub.SegmentEngine.OperatorManager.getAllOperators()};ContextHub.SegmentEngine.getObjectValue=function(n){return null===
n||void 0===n?null:n instanceof ContextHub.SegmentEngine.Operator?n.isResolved():n instanceof ContextHub.SegmentEngine.Property?n.getValue():n instanceof ContextHub.SegmentEngine.ScriptReference?n.execute():n instanceof ContextHub.SegmentEngine.SegmentReference?n.isResolved():n}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.Property.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};ContextHub.SegmentEngine.Property=function(n){var d=ContextHub.SegmentEngine.Property;if(!(this instanceof d))return ContextHub.Utils.inheritance.newInstance(d,arguments);n=ContextHub.Utils.JSON.tree.sanitizeKey(n);this.key="/"+n.join("/");this.storeName=n.shift();this.itemName=n.join("/")};ContextHub.SegmentEngine.Property.prototype.info={className:"Property",updateEvent:ContextHub.Constants.EVENT_STORE_UPDATED};ContextHub.SegmentEngine.Property.prototype.getKey=
function(){return this.key};ContextHub.SegmentEngine.Property.prototype.getStoreName=function(){return this.storeName};ContextHub.SegmentEngine.Property.prototype.getItemName=function(){return this.itemName};ContextHub.SegmentEngine.Property.prototype.getValue=function(){return ContextHub.get(this.key)};ContextHub.SegmentEngine.Property.prototype.toString=function(){return this.info.className+'("'+this.getKey()+'") -\x3e '+this.getValue()}})(ContextHubJQ,window);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.Operator.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};ContextHub.SegmentEngine.Operator=function(n,d){var c=ContextHub.SegmentEngine.Operator;if(!(this instanceof c))return ContextHub.Utils.inheritance.newInstance(c,arguments);d=[].slice.call(arguments,1);this.operatorName=n;this.operatorArguments=d};ContextHub.SegmentEngine.Operator.prototype.getOperatorName=function(){return this.operatorName};ContextHub.SegmentEngine.Operator.prototype.getOperatorArguments=function(){return this.operatorArguments};
ContextHub.SegmentEngine.Operator.prototype.isResolved=function(){var n=!1,d=!0,c=this.getOperatorName(),h=/^and(\.|$)/.test(c),k=/^or(\.|$)/.test(c),p=this.getOperatorArguments();if((h||k)&&2>p.length){var q=p.length;0===q&&(p.push(null),p.push(null));1===q&&p.push(h?!0:null)}q=ContextHub.SegmentEngine.getObjectValue(p[0]);var y=m.type(q);y=ContextHub.SegmentEngine.OperatorManager.getOperator(c,y);var x=function(O){h&&!1===O&&(d=n=!1);k&&!0===O&&(n=!0,d=!1)};x(q);var D=p.length?p.slice(1):[null];
if(y&&d){var F=h||k?p.length:2;c=y.operatorName;D=[];for(var J=1;J<F&&d;J++){var I=ContextHub.SegmentEngine.getObjectValue(p[J]);D.push(I);x(I)}d&&(p=[q].concat([].slice.call(D)),n=y.handler.apply(this,p))}ContextHub.console.debug("    comparing:",q,c,D.length?D.join(" "+c+" "):D+"","\x3d",n);this._resolution=[c,n,[].concat.call([q],D)];return n};ContextHub.SegmentEngine.Operator.prototype.traverse=function(n,d){var c=[],h=function(k){if(!k||"function"===typeof k.isResolved)if("undefined"===typeof d||
"function"===typeof d&&d(k))c.push(k),"function"===typeof n&&n(k)};h(this);ContextHub.SegmentEngine.OperatorManager.getOperator(this.operatorName)&&m.each(this.getOperatorArguments(),function(k,p){p instanceof ContextHub.SegmentEngine.Operator?m.merge(c,p.traverse(n,d)):h(p)});return c};ContextHub.SegmentEngine.Operator.prototype.toString=function(){var n='Operator("'+this.getOperatorName()+'"';m.each(this.getOperatorArguments(),function(d,c){n+=", "+c});return n+=") -\x3e "+this.isResolved()}})(ContextHubJQ,
window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.OperatorManager.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};var n={};ContextHub.SegmentEngine.OperatorManager={};ContextHub.SegmentEngine.OperatorManager.register=function(d,c){"string"===typeof d&&d.length&&!/\.$/.test(d)&&(n[d]={operatorName:d,handler:c})};ContextHub.SegmentEngine.OperatorManager.unregister=function(d){delete n[d]};ContextHub.SegmentEngine.OperatorManager.unregisterAllOperators=function(){n={}};ContextHub.SegmentEngine.OperatorManager.getAllOperators=function(){return n};
ContextHub.SegmentEngine.OperatorManager.getOperator=function(d,c){var h=(d||"").split(".",2);d=h.shift();h=h.shift()||"";return n[d+"."+h]||n[d+"."+c]||n[d]||null}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.Segment.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};ContextHub.SegmentEngine.Segment=function(d,c){var h=ContextHub.SegmentEngine.Segment;if(!(this instanceof h))return ContextHub.Utils.inheritance.newInstance(h,arguments);h=d||{};"string"===typeof h?h={path:d}:h.length&&(h={name:h.shift(),path:h.shift(),boost:h.shift()});var k=m.trim(h.name),p=m.trim(h.path),q=parseInt(m.trim(h.boost),10)||0;0===k.length&&(k=p.split("/").pop());k=k.replace(/ /g,"-").replace(/[^a-z0-9\-]/ig,"").toLowerCase();
this.title=h.name;this.name=k;this.path=p;this.boost=q;this.register(c)};ContextHub.SegmentEngine.Segment.prototype.info={className:"Segment",updateEvent:ContextHub.Constants.EVENT_SEGMENT_UPDATED};ContextHub.SegmentEngine.Segment.prototype.register=function(d){0!==this.getPath().length&&!this.isRegistered()&&d instanceof ContextHub.SegmentEngine.Operator&&(this.cachedResult=null,this.condition=d,this.registered=this.enabled=!1,ContextHub.SegmentEngine.Dependency.findAllDependencies.call(this,this.getCondition()),
ContextHub.SegmentEngine.SegmentManager.register(this))};ContextHub.SegmentEngine.Segment.prototype.unregister=function(){this.enabled=this.registered=!1;this.condition=null;this.isResolved();ContextHub.SegmentEngine.SegmentManager.unregister(this.getPath())};ContextHub.SegmentEngine.Segment.prototype.isResolved=function(){var d=!1;if(null!==this.cachedResult)return ContextHub.console.debug('[+] Segment "'+this.getPath()+'" resolution (cached):',this.cachedResult),this.cachedResult;ContextHub.console.debug('[+] Segment "'+
this.getPath()+'" resolution:');this.isEnabled()&&this.isRegistered()&&(d=this.condition.isResolved());d!==this.cachedResult&&(this.cachedResult=d,ContextHub.eventing.trigger(this.info.updateEvent,{resolved:d,key:this.getPath(),action:"set",value:d},{defer:0,_:{resolved:d,path:this.getPath()}}));return d};var n=function(d,c){var h=d._resolution;c=c||[];if(h){var k=h.shift(),p=h.shift();h=h.shift();var q=k+" ("+p+")";k={};k[q]=h;if(c instanceof Array)c.push(k);else return k}m.each(d.operatorArguments,
function(y,x){if(x instanceof ContextHub.SegmentEngine.Operator){var D=(c instanceof Array?c[c.length-1]:c)[q];D[y]=n(x,"boolean"===typeof D[y]?{}:[])}});return c};ContextHub.SegmentEngine.Segment.prototype.debug=function(){var d=this.getCondition();if(d){var c=this.isResolved();d=n(d);ContextHub.console.debug("[todo] debug: ",c,d)}else ContextHub.console.debug('[-] [SegmentEngine] Segment "'+this.getPath()+'" is invalid.')};ContextHub.SegmentEngine.Segment.prototype.isRegistered=function(){return!0===
this.registered};ContextHub.SegmentEngine.Segment.prototype.isEnabled=function(){return!0===this.enabled};ContextHub.SegmentEngine.Segment.prototype.enable=function(){this.condition instanceof ContextHub.SegmentEngine.Operator&&(this.enabled=!0)};ContextHub.SegmentEngine.Segment.prototype.disable=function(){this.enabled=!1};ContextHub.SegmentEngine.Segment.prototype.getName=function(){return this.name};ContextHub.SegmentEngine.Segment.prototype.getTitle=function(){return this.title};ContextHub.SegmentEngine.Segment.prototype.getPath=
function(){return this.path};ContextHub.SegmentEngine.Segment.prototype.getBoost=function(){return this.boost};ContextHub.SegmentEngine.Segment.prototype.getCondition=function(){return this.condition};ContextHub.SegmentEngine.Segment.prototype.getDependencies=function(){return this.dependencyList||ContextHub.SegmentEngine.Dependency.getEmptyDependencyList()};ContextHub.SegmentEngine.Segment.prototype.onUpdate=function(d,c){var h=this.info.updateEvent;if("function"===typeof c)ContextHub.eventing.on(h,
function(k,p){p&&p.keys.all.hash[this.segment]&&this.handler()}.bind({segment:this.getPath(),handler:c}),d);else ContextHub.eventing.off(h,d)};ContextHub.SegmentEngine.Segment.prototype.toString=function(){var d='("'+this.getPath()+'", '+this.getBoost()+", "+this.getCondition()+")";return this.info.className+d+" -\x3e "+this.isResolved()}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.SegmentReference.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};ContextHub.SegmentEngine.SegmentReference=function(n){var d=ContextHub.SegmentEngine.SegmentReference;if(!(this instanceof d))return ContextHub.Utils.inheritance.newInstance(d,arguments);this.segmentPath=m.trim(n)};ContextHub.SegmentEngine.SegmentReference.prototype.info={className:"SegmentReference",updateEvent:ContextHub.Constants.EVENT_SEGMENT_UPDATED};ContextHub.SegmentEngine.SegmentReference.prototype.getSegmentPath=function(){return this.segmentPath};
ContextHub.SegmentEngine.SegmentReference.prototype.isResolved=function(){var n=!1,d=ContextHub.SegmentEngine.SegmentManager.getSegment(this.getSegmentPath());d&&(n=d.isResolved());return n};ContextHub.SegmentEngine.SegmentReference.prototype.toString=function(){return this.info.className+'("'+this.getSegmentPath()+'") -\x3e '+this.isResolved()}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.SegmentManager.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};var n={};ContextHub.SegmentEngine.SegmentManager={};ContextHub.SegmentEngine.SegmentManager.info={registerEvent:ContextHub.Constants.EVENT_SEGMENT_REGISTERED,unregisterEvent:ContextHub.Constants.EVENT_SEGMENT_UNREGISTERED};ContextHub.SegmentEngine.SegmentManager.register=function(d){if(!(d instanceof ContextHub.SegmentEngine.Segment&&d.getCondition()))return!1;n[d.getPath()]=d;d.enabled=!0;d.registered=!0;ContextHub.eventing.trigger(ContextHub.SegmentEngine.SegmentManager.info.registerEvent,
{key:d.getPath(),action:"set",value:"registered"},{defer:0});ContextHub.SegmentEngine.Dependency.dependencyMonitor(d,!0);d.isResolved();return!0};ContextHub.SegmentEngine.SegmentManager.unregister=function(d){if(d=d instanceof ContextHub.SegmentEngine.Segment?d:this.getSegment(d))d.registered=!1,d.disable(),delete n[d.getPath()],ContextHub.SegmentEngine.Dependency.dependencyMonitor(d,!1),d.cachedResult=null,d.dependencyList=ContextHub.SegmentEngine.Dependency.getEmptyDependencyList(),d.isResolved(),
ContextHub.eventing.trigger(ContextHub.SegmentEngine.SegmentManager.info.unregisterEvent,{segment:d,key:d.getPath(),action:"remove",value:"unregistered"},{defer:0})};ContextHub.SegmentEngine.SegmentManager.unregisterAllSegments=function(){m.each(n,function(d,c){c.unregister()})};ContextHub.SegmentEngine.SegmentManager.getAllSegments=function(){return n};ContextHub.SegmentEngine.SegmentManager.getSegment=function(d){return n[d]||null};ContextHub.SegmentEngine.SegmentManager.getResolvedSegments=function(d){var c=
!0===(d||{}).returnLookup,h=c?{}:[];d=ContextHub.Shared.timers.start();m.each(n,function(k,p){p.isResolved()&&(c?h[p.getPath()]=p:h.push(p))});ContextHub.console.log(ContextHub.Shared.timestamp(),"[+] checking resolved segments ("+ContextHub.Shared.timers.finish(d)+"ms)");return h};ContextHub.SegmentEngine.SegmentManager.getUnresolvedSegments=function(d){var c=!0===(d||{}).returnLookup,h=c?{}:[];d=ContextHub.Shared.timers.start();m.each(n,function(k,p){p.isResolved()||(c?h[p.getPath()]=p:h.push(p))});
ContextHub.console.log(ContextHub.Shared.timestamp(),"[+] checking unresolved segments ("+ContextHub.Shared.timers.finish(d)+"ms)");return h};ContextHub.SegmentEngine.SegmentManager.invalidateCache=function(){for(var d in n)n.hasOwnProperty(d)&&(n[d].cachedResult=null);return ContextHub.SegmentEngine.SegmentManager.getResolvedSegments()}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.ScriptReference.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};ContextHub.SegmentEngine.ScriptReference=function(n,d){var c=ContextHub.SegmentEngine.ScriptReference;if(!(this instanceof c))return ContextHub.Utils.inheritance.newInstance(c,arguments);d=[].slice.call(arguments,1);this.scriptName=m.trim(n);this.scriptArguments=d;this.cachedResult=null;this.dependencyList=ContextHub.SegmentEngine.Dependency.getEmptyDependencyList();for(c=0;c<this.scriptArguments.length;c++)this.dependOn(this.scriptArguments[c]);
ContextHub.SegmentEngine.Dependency.dependencyMonitor(this,!0)};ContextHub.SegmentEngine.ScriptReference.prototype.info={className:"ScriptReference",updateEvent:ContextHub.Constants.EVENT_SCRIPT_UPDATED};ContextHub.SegmentEngine.ScriptReference.prototype.dependOn=function(n){ContextHub.SegmentEngine.Dependency.addDependency.call(this,n)};ContextHub.SegmentEngine.ScriptReference.prototype.getScriptName=function(){return this.scriptName};ContextHub.SegmentEngine.ScriptReference.prototype.getScriptHandler=
function(){return ContextHub.SegmentEngine.ScriptManager.getScript(this.getScriptName())};ContextHub.SegmentEngine.ScriptReference.prototype.getScriptArguments=function(){return this.scriptArguments};ContextHub.SegmentEngine.ScriptReference.prototype.getDependencies=function(){return this.dependencyList||ContextHub.SegmentEngine.Dependency.getEmptyDependencyList()};ContextHub.SegmentEngine.ScriptReference.prototype.execute=function(){var n=null,d=this.getScriptHandler();if(null!==this.cachedResult)return this.cachedResult;
if("function"===typeof d){var c=this.getScriptArguments(),h=[];m.each(c,function(k,p){k=ContextHub.SegmentEngine.getObjectValue(p);h.push(k)});try{n=d.apply(this,h)}catch(k){ContextHub.console.error('[-] [SegmentEngine] User script "'+this.getScriptName()+'" failed:',k),n=null}}this.cachedResult!==n&&(this.cachedResult=n,ContextHub.eventing.trigger(this.info.updateEvent+":"+this.getScriptName(),{script:this,key:this.getScriptName(),action:"set",resolved:n,value:n},{defer:0,_:{result:n,scriptName:this.getScriptName()}}));
return n};ContextHub.SegmentEngine.ScriptReference.prototype.isResolved=function(){return this.execute()};ContextHub.SegmentEngine.ScriptReference.prototype.toString=function(){var n=this.info.className+'("'+this.getScriptName()+'"';m.each(this.getScriptArguments(),function(d,c){"string"===typeof c&&(c='"'+c+'"');n+=", "+c});return n+=") -\x3e "+this.execute()}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.ScriptManager.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};var n={};ContextHub.SegmentEngine.ScriptManager={};ContextHub.SegmentEngine.ScriptManager.register=function(c,h){"string"===typeof c&&c.length&&"function"===typeof h&&(n[c]=h,ContextHub.eventing.trigger(ContextHub.Constants.EVENT_SCRIPT_REGISTERED,{key:c,action:"set",value:"registered"},{defer:0}))};ContextHub.SegmentEngine.ScriptManager.unregister=function(c){this.isRegistered(c)&&ContextHub.eventing.trigger(ContextHub.Constants.EVENT_SCRIPT_UNREGISTERED,
{key:c,action:"remove",value:"unregistered"},{defer:0});delete n[c]};ContextHub.SegmentEngine.ScriptManager.unregisterAllScripts=function(){m.each(this.getAllScripts(),function(c){this.unregister(c)}.bind(this))};ContextHub.SegmentEngine.ScriptManager.getAllScripts=function(){return n};var d=function(c){ContextHub.console.error('[-] [SegmentEngine] User script "'+c+'" not found.');return function(){return null}};ContextHub.SegmentEngine.ScriptManager.getScript=function(c){return n[c]||d(c)};ContextHub.SegmentEngine.ScriptManager.isRegistered=
function(c){return!!n[c]}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine - ContextHub.SegmentEngine.Dependency.js");
(function(m,t){t.ContextHub.SegmentEngine=t.ContextHub.SegmentEngine||{};ContextHub.SegmentEngine.Dependency={};ContextHub.SegmentEngine.Dependency.allowedDependencies=[ContextHub.SegmentEngine.SegmentReference,ContextHub.SegmentEngine.ScriptReference,ContextHub.SegmentEngine.Property];ContextHub.SegmentEngine.Dependency.getEmptyDependencyList=function(){var d={};m.each(ContextHub.SegmentEngine.Dependency.allowedDependencies,function(c,h){d[h.prototype.info.className]={keys:[],updateEvent:null}});
return d};ContextHub.SegmentEngine.Dependency.addDependency=function(d){if(d){this.dependencyList=this.dependencyList||ContextHub.SegmentEngine.Dependency.getEmptyDependencyList();var c=null;if(d instanceof ContextHub.SegmentEngine.Property){var h=d.getKey();c=h.replace(/(^\/|\/$)/g,"").split(/\//).shift()||null}else h=d instanceof ContextHub.SegmentEngine.ScriptReference?d.getScriptName():d instanceof ContextHub.SegmentEngine.SegmentReference?d.getSegmentPath():null;if(h){var k=this.dependencyList[d.info.className];
k[h]||(k[h]=!0,k.keys.push(h));k.variant=d.info.className;k.updateEvent=d.info.updateEvent;c&&(k.stores=k.stores||{},k.stores[c]=!0)}}};ContextHub.SegmentEngine.Dependency.findAllDependencies=function(d){var c=(d||{}).operatorArguments;if(c){d=Math.min(c.length,/^(and|or)(\.|$)/.test(d.operatorName)?Number.MAX_VALUE:2);var h;for(h=0;h<d;h++){var k=c[h];k instanceof ContextHub.SegmentEngine.Operator?ContextHub.SegmentEngine.Dependency.findAllDependencies.call(this,k):ContextHub.SegmentEngine.Dependency.addDependency.call(this,
k)}}};var n=function(d,c){d=this.getDependencies();var h=null;c.channel===ContextHub.SegmentEngine.SegmentReference.prototype.info.updateEvent?h=d.SegmentReference:c.channel===ContextHub.SegmentEngine.ScriptReference.prototype.info.updateEvent?h=d.ScriptReference:c.channel===ContextHub.SegmentEngine.Property.prototype.info.updateEvent?h=d.Property:ContextHub.console.error("[-] [SegmentEngine] Unsupported event type:",c.channel);h&&ContextHub.SegmentEngine.Dependency.isMatching(c,h)&&(this.cachedResult=
null,this.isResolved())};ContextHub.SegmentEngine.Dependency.dependencyMonitor=function(d,c){if(d instanceof ContextHub.SegmentEngine.Segment||d instanceof ContextHub.SegmentEngine.ScriptReference){var h=(d.getPath||d.getScriptName).call(d).replace(/[^a-z]/ig,""),k=d.getDependencies(),p=[],q;for(q in k)if(k.hasOwnProperty(q)){var y=k[q];y.keys.length&&p.push(y.updateEvent)}if(p.length)if(p=p.join(" "),c)ContextHub.eventing.on(p,n.bind(d),h);else ContextHub.eventing.off(p,h)}};ContextHub.SegmentEngine.Dependency.isMatching=
function(d,c){var h=ContextHub.SegmentEngine.Dependency[(c||{}).variant+"Handler"];return"function"===typeof h?h.call(this,d,c):!1};ContextHub.SegmentEngine.Dependency.SegmentReferenceHandler=function(d,c){for(var h=0;h<c.keys.length;h++)if(d.keys.all.hash[c.keys[h]])return!0;return!1};ContextHub.SegmentEngine.Dependency.ScriptReferenceHandler=function(d,c){for(var h=0;h<c.keys.length;h++)if(d.keys.all.hash[c.keys[h]])return!0;return!1};ContextHub.SegmentEngine.Dependency.PropertyHandler=function(d,
c){if(c.stores[d.store])for(var h=0;h<c.keys.length;h++){var k=c.keys[h];k=k.substr(k.indexOf("/",1));if(d.keys.all.hash[k])return!0}return!1}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.and.js");(function(){ContextHub.SegmentEngine.OperatorManager.register("and",function(m,t){return!(!m||!t)})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.or.js");
(function(){ContextHub.SegmentEngine.OperatorManager.register("or",function(m,t){return!(!m&&!t)})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.equal.js");
(function(m){var t=function(n){"boolean"!==typeof n&&(n=/^true$/i.test(m.trim(String(n))));return n};ContextHub.SegmentEngine.OperatorManager.register("equal",function(n,d){return n===d});ContextHub.SegmentEngine.OperatorManager.register("equal.string",function(n,d){n=String(n);d=String(d);return n===d});ContextHub.SegmentEngine.OperatorManager.register("equal.number",function(n,d){n=Number(String(n)||void 0);d=Number(String(d)||void 0);return n===d});ContextHub.SegmentEngine.OperatorManager.register("equal.boolean",
function(n,d){n=t(n);d=t(d);return n===d});ContextHub.SegmentEngine.OperatorManager.register("equal.date",function(n,d){n=new Date(n||void 0);d=new Date(d||void 0);return Number(n)===Number(d)});ContextHub.SegmentEngine.OperatorManager.register("equal.regexp",function(n,d){var c=!1;"string"===typeof n&&d&&(d instanceof RegExp||(d=new RegExp(d)),c=d.test(n));return c})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.not-equal.js");
(function(m){var t=function(n){return function(){return!n.apply(this,arguments)}};m.each(ContextHub.SegmentEngine.OperatorManager.getAllOperators(),function(n,d){/^equal(\.|$)/.test(n)&&ContextHub.SegmentEngine.OperatorManager.register("not-"+n,t(d.handler))})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.less-than.js");
(function(){ContextHub.SegmentEngine.OperatorManager.register("less-than",function(m,t){return m<t});ContextHub.SegmentEngine.OperatorManager.register("less-than.string",function(m,t){m=String(m);t=String(t);return m<t});ContextHub.SegmentEngine.OperatorManager.register("less-than.number",function(m,t){m=Number(String(m)||void 0);t=Number(String(t)||void 0);return m<t});ContextHub.SegmentEngine.OperatorManager.register("less-than.date",function(m,t){m=new Date(m||void 0);t=new Date(t||void 0);return Number(m)<
Number(t)})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.less-than-or-equal.js");
(function(m){var t=function(c,h){ContextHub.console.error("[-] [SegmentEngine] Comparison operator not found:",c+(h?"."+h:""));return function(){return!1}},n=function(c,h){return(ContextHub.SegmentEngine.OperatorManager.getOperator(c,h)||{}).handler||t(c,h)},d=function(c){var h=n("less-than",c),k=n("equal",c);return function(){return h.apply(this,arguments)||k.apply(this,arguments)}};m.each(ContextHub.SegmentEngine.OperatorManager.getAllOperators(),function(c){if(/^less-than(\.|$)/.test(c)){var h=
c.split(".",2);c=h.shift();h=h.shift();c=c.replace("less-than","less-than-or-equal");h&&(c+="."+h);ContextHub.SegmentEngine.OperatorManager.register(c,d(h))}})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.greater-than.js");
(function(){ContextHub.SegmentEngine.OperatorManager.register("greater-than",function(m,t){return m>t});ContextHub.SegmentEngine.OperatorManager.register("greater-than.string",function(m,t){m=String(m);t=String(t);return m>t});ContextHub.SegmentEngine.OperatorManager.register("greater-than.number",function(m,t){m=Number(String(m)||void 0);t=Number(String(t)||void 0);return m>t});ContextHub.SegmentEngine.OperatorManager.register("greater-than.date",function(m,t){m=new Date(m||void 0);t=new Date(t||
void 0);return Number(m)>Number(t)})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.operators - Operator.greater-than-or-equal.js");
(function(m){var t=function(c,h){ContextHub.console.error("[-] [SegmentEngine] Comparison operator not found:",c+(h?"."+h:""));return function(){return!1}},n=function(c,h){return(ContextHub.SegmentEngine.OperatorManager.getOperator(c,h)||{}).handler||t(c,h)},d=function(c){var h=n("greater-than",c),k=n("equal",c);return function(){return h.apply(this,arguments)||k.apply(this,arguments)}};m.each(ContextHub.SegmentEngine.OperatorManager.getAllOperators(),function(c){if(/^greater-than(\.|$)/.test(c)){var h=
c.split(".",2);c=h.shift();h=h.shift();c=c.replace("greater-than","greater-than-or-equal");h&&(c+="."+h);ContextHub.SegmentEngine.OperatorManager.register(c,d(h))}})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.js");
(function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};ContextHub.SegmentEngine.PageInteraction={};ContextHub.SegmentEngine.PageInteraction.info={propertyHolder:"data-contexthub-property",processorHolder:"data-processor",defaultHolder:"data-default-value"};ContextHub.SegmentEngine.PageInteraction.getPropertyPlaceholders=function(n){var d="["+ContextHub.SegmentEngine.PageInteraction.info.propertyHolder+(n?'^\x3d"%1"]':"]");n=m([d.replace(/%1/,"/"+n),
d.replace(/%1/,n)].join(", "));var c=[];m.each(n,function(h,k){h=ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder(k);h.isValid()&&c.push(h)});return c}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.PropertyPlaceholder.js");
(function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};var n=function(){var d=this.element.attr(ContextHub.SegmentEngine.PageInteraction.info.propertyHolder);this.element&&d?(d=ContextHub.Utils.JSON.tree.sanitizeKey(d),this.storeName=d.shift(),this.propertyName="/"+d.join("/"),this.keyName="/"+this.storeName+this.propertyName,this.defaultValue=m.trim(this.element.attr(ContextHub.SegmentEngine.PageInteraction.info.defaultHolder)||""),this.processors=
[],m.each((this.element.attr(ContextHub.SegmentEngine.PageInteraction.info.processorHolder)||"").split(/,/),function(c,h){c=m.trim(h);c.length&&this.processors.push(c)}.bind(this))):(this.defaultValue=this.propertyName=this.keyName=this.storeName=null,this.processors=[])};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder=function(d){var c=ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder;if(!(this instanceof c))return ContextHub.Utils.inheritance.newInstance(c,arguments);this.element=
m(d);n.call(this)};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder.prototype.update=function(d){n.call(this);var c=this.getValueProcessors();d||(d=ContextHub.get(this.getKey()));d&&""!==d||(d=this.getDefaultValue());for(var h=0;h<c.length;h++){var k=ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.getProcessor(c[h]);d=m.trim(k.handler.call(this,d))}this.element.val()!==d&&this.element.text(d)};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder.prototype.getPropertyName=
function(){n.call(this);return this.propertyName||""};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder.prototype.getKey=function(){n.call(this);return this.keyName||""};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder.prototype.getDefaultValue=function(){n.call(this);return this.defaultValue||""};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder.prototype.getValueProcessors=function(){return this.processors||[]};ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder.prototype.isValid=
function(){return!!this.propertyName}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.PropertyProcessor.js");
(function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};var n={};ContextHub.SegmentEngine.PageInteraction.PropertyProcessor={};ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.register=function(c,h){"string"===typeof c&&c.length&&(n[c]={processorName:c,handler:h})};ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.unregister=function(c){delete n[c]};ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.unregisterAllProcessors=
function(){n={}};ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.getAllProcessors=function(){return n};var d={processorName:"default",handler:function(c){return c}};ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.getProcessor=function(c){return n[c]||d}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.Teaser.js");
(function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};var n={analytics:1,design:1,disabled:1,preview:1,read_only:1},d=function(c){var h=c;if("ui"===ContextHub.Constants.MODE){var k=/[?&]wcmmode=([^&#]*)/.exec(t.location.href);k=k&&1<k.length?(k[1]||"").toLowerCase():ContextHub.Utils.Cookie.getItem("wcmmode");n[k]&&(h+=(-1===c.indexOf("?")?"?":"\x26")+"wcmmode\x3d"+k)}return h};ContextHub.SegmentEngine.PageInteraction.Teaser=function(c){var h=ContextHub.SegmentEngine.PageInteraction.Teaser;
if(!(this instanceof h))return ContextHub.Utils.inheritance.newInstance(h,arguments);c=c||{};this.details={locationId:m.trim(c.locationId),variants:c.variants||[],strategy:m.trim(c.strategy),trackingURL:m.trim(c.trackingURL)};this.register()};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.info={className:"Teaser",loadEvent:ContextHub.Constants.EVENT_TEASER_LOADED};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.register=function(){this.details.locationId.length&&this.details.variants.length&&
!this.isRegistered()&&(this.registered=ContextHub.SegmentEngine.PageInteraction.TeaserManager.register(this))};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.unregister=function(){this.registered=!1;ContextHub.SegmentEngine.PageInteraction.TeaserManager.unregister(this)};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.updatePlaceholder=function(){var c=this.getBestCandidate(),h=null;if(c){var k=this.currentlyLoaded||{};h=d(c.url);if(k.path===c.path&&k.url===h)return}c?(this.currentlyLoaded=
m.extend(!0,{},c,{url:h}),this.getVariantContent(h,function(p){m("#"+this.details.locationId).html(p);ContextHub.eventing.trigger(ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.info.loadEvent,{teaser:this,variant:c,key:this.details.locationId,action:"set",value:"loaded"},{defer:0})}.bind(this))):delete this.currentlyLoaded};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.getVariantContent=function(c,h,k){var p=ContextHub.SegmentEngine.PageInteraction.Cache.get(c);p?h.call(this,
p.content,p.status,p.xhr):(p=m.ajax({url:c,async:!0}),p.done(function(q,y,x){ContextHub.SegmentEngine.PageInteraction.Cache.set(c,{content:q,status:y,xhr:x,url:c});h.call(this,q,y,x)}),"function"===typeof k&&p.fail(function(q){k.call(this,q)}))};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.getBestCandidate=function(){for(var c=null,h=[],k=[],p=ContextHub.SegmentEngine.SegmentManager.getResolvedSegments({returnLookup:!0}),q=this.details.variants,y=0;y<q.length;y++){var x=q[y],D=x.segments||
[],F=!1,J=!1;x.boost=0;if(0===D.length)J=F=!0;else for(var I=0;I<D.length;I++){var O=p[D[I]];"undefined"!==typeof O&&(F=!0,x.boost=Math.max(x.boost,O.boost||0))}F&&(J?k:h).push(x)}if(0===h.length||"random"===this.details.strategy)h=[].concat.call(h,k);h.length&&(h.sort(function(ja,ka){return ka.boost-ja.boost}),c=ContextHub.SegmentEngine.PageInteraction.StrategyManager.chooseCandidate(h,this.details.strategy));return c};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.getCurrentlyLoaded=
function(){return this.currentlyLoaded||null};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.isRegistered=function(){return!0===this.registered};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.getTeaserId=function(){return this.details.locationId};ContextHub.SegmentEngine.PageInteraction.Teaser.prototype.toString=function(){var c=[];m.each(c,function(h,k){c.push(h+': "'+k+'"')});return this.info.className+"("+c.join(", ")+")"}})(ContextHubJQ,window);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.TeaserManager.js");
(function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};var n={};ContextHub.SegmentEngine.PageInteraction.TeaserManager={};ContextHub.SegmentEngine.PageInteraction.TeaserManager.info={registerEvent:ContextHub.Constants.EVENT_TEASER_REGISTERED,unregisterEvent:ContextHub.Constants.EVENT_TEASER_UNREGISTERED};ContextHub.SegmentEngine.PageInteraction.TeaserManager.register=function(d){if(!(d instanceof ContextHub.SegmentEngine.PageInteraction.Teaser))return!1;
n[d.getTeaserId()]=d;ContextHub.eventing.trigger(ContextHub.SegmentEngine.PageInteraction.TeaserManager.info.registerEvent,{teaser:d,key:d.getTeaserId(),action:"set",value:"registered"},{defer:0});return!0};ContextHub.SegmentEngine.PageInteraction.TeaserManager.unregister=function(d){if(d=d instanceof ContextHub.SegmentEngine.PageInteraction.Teaser?d:this.getTeaser(d))d.registered=!1,delete n[d.getTeaserId()],ContextHub.eventing.trigger(ContextHub.SegmentEngine.PageInteraction.TeaserManager.info.unregisterEvent,
{teaser:d,key:d.getTeaserId(),action:"remove",value:"unregistered"},{defer:0})};ContextHub.SegmentEngine.PageInteraction.TeaserManager.unregisterAllTeasers=function(){m.each(n,function(d,c){c.unregister()})};ContextHub.SegmentEngine.PageInteraction.TeaserManager.getAllTeasers=function(){return n};ContextHub.SegmentEngine.PageInteraction.TeaserManager.getTeaser=function(d){return n[d]||null};ContextHub.SegmentEngine.PageInteraction.TeaserManager.refreshAllTeasers=function(d){d&&ContextHub.SegmentEngine.SegmentManager.invalidateCache();
for(var c in n)n.hasOwnProperty(c)&&n[c].updatePlaceholder()}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.StrategyManager.js");
(function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};var n={};ContextHub.SegmentEngine.PageInteraction.StrategyManager={};ContextHub.SegmentEngine.PageInteraction.StrategyManager.register=function(c,h,k){"string"===typeof c&&c.length&&(n[c]={strategyName:c,displayName:h,handler:k})};ContextHub.SegmentEngine.PageInteraction.StrategyManager.unregister=function(c){delete n[c]};ContextHub.SegmentEngine.PageInteraction.StrategyManager.unregisterAllStrategies=
function(){n={}};ContextHub.SegmentEngine.PageInteraction.StrategyManager.getAllStrategies=function(){return n};var d={strategyName:"default",displayName:"Default (first teaser candidate)",handler:function(c){return(c||[])[0]||null}};ContextHub.SegmentEngine.PageInteraction.StrategyManager.getStrategy=function(c){return n[c]||d};ContextHub.SegmentEngine.PageInteraction.StrategyManager.chooseCandidate=function(c,h){return ContextHub.SegmentEngine.PageInteraction.StrategyManager.getStrategy(h).handler.call(this,
c)}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - PageInteraction.Cache.js");
(function(m,t){t.ContextHub.SegmentEngine.PageInteraction=t.ContextHub.SegmentEngine.PageInteraction||{};var n={};ContextHub.SegmentEngine.PageInteraction.Cache={};ContextHub.SegmentEngine.PageInteraction.Cache.set=function(d,c){n[d]=c};ContextHub.SegmentEngine.PageInteraction.Cache.get=function(d){return n[d]||null};ContextHub.SegmentEngine.PageInteraction.Cache.getAllItems=function(){return n||{}};ContextHub.SegmentEngine.PageInteraction.Cache.clear=function(d){delete n[d]};ContextHub.SegmentEngine.PageInteraction.Cache.clearAllItems=
function(){n={}}})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - util.case-manipulation.js");
(function(){ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.register("lower-case",function(m){return String(m).toLowerCase()});ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.register("upper-case",function(m){return String(m).toUpperCase()});ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.register("title-case",function(m){return String(m).toLowerCase().replace(/(^| )+(.)/g,function(t){return t.toUpperCase()})})})();
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - util.number-formatting.js");(function(){ContextHub.SegmentEngine.PageInteraction.PropertyProcessor.register("timestamp-to-date",function(m){var t=function(n){return(9>=n?"0":"")+n};m=new Date(1E3*m);m=isNaN(m.getMilliseconds())?new Date:m;return[[m.getFullYear(),t(m.getMonth()+1),t(m.getDay())].join("-"),[t(m.getHours()),t(m.getMinutes()),t(m.getSeconds())].join(":")].join(" ")})})();
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - task.page-update-watcher.js");
(function(m,t){var n=t.MutationObserver||t.WebKitMutationObserver;if(n){var d={childList:!0,attributes:!0,characterData:!0,subtree:!0,attributeOldValue:!0,characterDataOldValue:!0,attributeFilter:[ContextHub.SegmentEngine.PageInteraction.info.propertyHolder,ContextHub.SegmentEngine.PageInteraction.info.defaultHolder,ContextHub.SegmentEngine.PageInteraction.info.processorHolder]};m(function(){(new n(function(c){for(var h="["+ContextHub.SegmentEngine.PageInteraction.info.propertyHolder+"]",k=[],p=0;p<
c.length;p++){var q=c[p];m.merge(k,m(q.addedNodes).filter(h));q.attributeName&&q.target&&k.push(q.target)}m.each(m.unique(k),function(y,x){y=ContextHub.SegmentEngine.PageInteraction.PropertyPlaceholder(x);y.isValid()&&y.update()})})).observe(t.document.body,d)})}m(function(){var c=ContextHub.SegmentEngine.PageInteraction.getPropertyPlaceholders();m.each(c,function(h,k){k.isValid()&&k.update()})})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - task.data-update-watcher.js");
(function(m){ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED,function(t,n){t=ContextHub.SegmentEngine.PageInteraction.getPropertyPlaceholders((n||{}).store);m.each(t,function(d,c){var h=c.getPropertyName();d=this.eventData.keys.set.hash[h];h=this.eventData.keys.removed.hash[h];var k=d?d.value:void 0;(d||h)&&c.update(k)}.bind({eventData:n}))},"page-interaction",!0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - task.teaser-update.js");
(function(m){var t=0,n=function(){var c=ContextHub.SegmentEngine.PageInteraction.TeaserManager.getAllTeasers();m.each(c,function(h,k){k.isRegistered()&&k.updatePlaceholder()})},d=function(){80<=(new Date).getTime()-t?(n(),t=0):window.requestAnimationFrame(d)};ContextHub.eventing.once([ContextHub.Constants.EVENT_ALL_STORES_READY,ContextHub.Constants.EVENT_STORES_PARTIALLY_READY],function(){var c=[ContextHub.Constants.EVENT_SEGMENT_UPDATED,ContextHub.Constants.EVENT_STORE_UPDATED+":campaign",ContextHub.Constants.EVENT_TEASER_REGISTERED];
ContextHub.eventing.off(c,"teaser-updater");ContextHub.eventing.on(c,function(){var h=0===t;t=(new Date).getTime()+80;h&&d()},"teaser-updater",!0)},"teaser-initialization",!0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - strategy.first.js");(function(){ContextHub.SegmentEngine.PageInteraction.StrategyManager.register("first","First candidate",function(m){return(m||[])[0]||null})})();
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - strategy.last.js");(function(){ContextHub.SegmentEngine.PageInteraction.StrategyManager.register("last","Last candidate",function(m){var t;m&&(t=m[m.length-1]);return t||null})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.segment-engine.page-interaction - strategy.random.js");
(function(){ContextHub.SegmentEngine.PageInteraction.StrategyManager.register("random","Random",function(m){var t;m&&(t=m[Math.floor(Math.random()*m.length)]);return t||null})})();ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.geolocation - store.geolocation-basic.js");
(function(m,t){var n={html5coordinatesDiscoveryAPI:{timeout:3E4,ttl:9E5,highAccuracy:!1},initialValues:{latitude:37.331375,longitude:-121.893992}},d=function(c,h){this.config=m.extend(!0,{},n,h);this.init(c,this.config);m.extend(this.config.html5coordinatesDiscoveryAPI,{location:this.config.initialValues});this.updateLocationModule()};ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.PersistedStore);d.prototype.getCoordinates=function(){var c=m.Deferred();if(!t.navigator.geolocation)return c.reject();
var h=this.config.html5coordinatesDiscoveryAPI;t.navigator.geolocation.getCurrentPosition(c.resolve,c.reject,{maximumAge:h.ttl,timeout:h.timeout,enableHighAccuracy:h.highAccuracy});return c.promise()};d.prototype.loadCurrentLocation=function(){var c=this;m.when(this.getCoordinates()).then(function(h){c.loadLocation(h.coords||{})})};d.prototype.loadLocation=function(c){c=c||{};m.isNumeric(c.latitude)&&m.isNumeric(c.longitude)&&(this.storeLocation(c,{}),this.updateLocationModule())};d.prototype.storeLocation=
function(c,h){c=m.extend(h,c);this.setItem("latitude",parseInt(1E6*c.latitude,10)/1E6);this.setItem("longitude",parseInt(1E6*c.longitude,10)/1E6)};d.prototype.areCoordinatesSet=function(){return m.isNumeric(this.getItem("latitude"))&&m.isNumeric(this.getItem("longitude"))};d.prototype.updateLocationModule=function(){var c=this,h=!0;h&&!this.areCoordinatesSet()&&(h=!1);h||m.when(this.getCoordinates()).then(function(k){c.storeLocation(k.coords||{},c.config.html5coordinatesDiscoveryAPI.location)},function(){c.storeLocation({},
c.config.html5coordinatesDiscoveryAPI.location)})};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"contexthub.geolocation",10,function(){var c=ContextHub.Utils.JSON.tree.getItem(t.ContextHubKernelConfig||{},"stores/geolocation/config/geocoder")||{enabled:!1};return"geolocation"in t.navigator&&!c.enabled})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.geolocation - store.geolocation.js");
(function(m,t){var n={service:{jsonp:!1,timeout:1E3,ttl:18E5,secure:"https:"===t.location.protocol,host:"maps.googleapis.com",port:80,path:"/maps/api/geocode/json"},geocoder:{enabled:!1},eventDeferring:16,html5coordinatesDiscoveryAPI:{timeout:3E4,ttl:9E5,highAccuracy:!1},signatureGenerator:ContextHub.Paths.CONTEXTHUB_PATH+"/geolocation.signature.json",initialValues:{defaultLocation:{latitude:37.331375,longitude:-121.893992,address:{country:"United States",countryCode:"US",city:"San Jose",street:"Almaden Blvd",
streetNumber:"151",region:"CA",name:"151 Almaden Blvd, San Jose, CA 95113, USA",postalCode:"95113"},addressDetailsOf:{latitude:37.331375,longitude:-121.893992}}}},d=function(k,p){this.config=m.extend(!0,{},n,p);m.extend(this.config.service,{params:{sensor:!1,latlng:"${contexthub:/store/"+k+"/latitude},${contexthub:/store/"+k+"/longitude}"}});this.init(k,this.config);this.useGeocoder=!0===this.config.geocoder.enabled&&"ui"===ContextHub.Constants.MODE;h(this);this.useGeocoder||(this.announceReadiness(),
this.removeItem("/address"));ContextHub.eventing.on("ui-container-opened",function(){this.queryService(!1,!0)}.bind(this),"geocoder-trigger",!0);this.queryService(!1,!0)},c=function(k){k&&k.loadLocation({latitude:k.getItem("latitude"),longitude:k.getItem("longitude")})},h=function(k){var p={latitude:!0,longitude:!0};k.onUpdate("data-synchronization",function(D,F){if(t.ClientContext){var J=!1;k.synchronizationLock=!0;m.each(F.keys.all.hash,function(I,O){I=I.replace(/^\//,"");-1===I.indexOf("_/")&&
(ClientContext.set("geolocation/"+I,O.value),J=J||p[I])});delete k.synchronizationLock;J&&c(k)}});var q=function(D){D&&D.addListener("update",function(F,J){k.synchronizationLock||"string"!==typeof J||(F=this.getProperty(J),k.setItem(J,F))})};if(t.CQ_Analytics&&CQ_Analytics.ClientContextMgr){var y=function(){var D=CQ_Analytics.ClientContextMgr.getRegisteredStore("geolocation");if(D){var F={generatedThumbnail:!0};k.synchronizationLock=!0;m.each(k.getKeys(),function(J,I){J=I.replace(/^\//,"");I=k.getItem(I);
"object"!==typeof I&&(F[J]=!0,D.setProperty(J,I))});m.each(D.getData(),function(J){F[J]||D.removeProperty(J)});delete k.synchronizationLock}return D};if(CQ_Analytics.ClientContextMgr.getRegisteredStore("geolocation")){var x=y();q(x)}else CQ_Analytics.ClientContextMgr.addListener("storeregister",function(D,F){"geolocation"===F.STORENAME&&(D=y(),q(D))})}};ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.PersistedJSONPStore);d.prototype.getCoordinates=function(){var k=m.Deferred();if(!t.navigator.geolocation)return k.reject();
t.navigator.geolocation.getCurrentPosition(k.resolve,k.reject,{maximumAge:this.config.html5coordinatesDiscoveryAPI.ttl,timeout:this.config.html5coordinatesDiscoveryAPI.timeout,enableHighAccuracy:this.config.html5coordinatesDiscoveryAPI.highAccuracy});return k.promise()};d.prototype.generateSignature=function(k,p){if(this.useGeocoder&&ContextHub.UI&&ContextHub.UI.Container.isExpanded()){var q=this.getItem("addressDetailsOf")||{},y=this.getItem("latitude"),x=this.getItem("longitude");if(q.latitude!==
y||q.longitude!==x)if((q=this.config.initialValues.defaultLocation)&&y===q.latitude&&x===q.longitude)this.setItem("address",q.address),this.setItem("addressDetailsOf",q.addressDetailsOf);else{delete this.config.service.params.client;delete this.config.service.params.signature;delete this.config.service.params.channel;y=this.getServiceURL(!0);y=y.replace(/^https?:\/\/[^/]*/,"");var D=this;m.ajax({url:this.config.signatureGenerator,method:"get",dataType:"json",cache:!1,data:{url:y}}).done(function(F,
J,I){I&&I.responseJSON?(F=D.config.service.params,F.client=I.responseJSON.client||"",F.channel=I.responseJSON.channel||"",F.signature=I.responseJSON.signature||"",k()):"function"===typeof p&&p()}).fail(p)}}};d.prototype.loadCurrentLocation=function(){var k=this;m.when(this.getCoordinates()).then(function(p){k.loadLocation(p.coords||{})})};d.prototype.loadLocation=function(k){k=k||{};(n.initialValues.latitude!==k.latitude||n.initialValues.longitude!==k.longitude)&&m.isNumeric(k.latitude)&&m.isNumeric(k.longitude)&&
(this.storeLocation(k,{}),this.queryService(!1,!0))};d.prototype.successHandler=function(k){if(k&&"OK"===k.status){var p=null,q=null,y=null,x=null,D=null,F=null,J=null,I=null;m.each((k.results||[]).reverse(),function(O,ja){ja=ja||{};I=ja.formatted_address||I;m.each(ja.address_components||[],function(ka,W){ka=W.types||[];-1!==m.inArray("administrative_area_level_1",ka)&&(F=W.short_name||F);-1!==m.inArray("country",ka)&&(p=W.long_name||p,q=W.short_name||q);-1!==m.inArray("locality",ka)&&(y=W.short_name||
y);-1!==m.inArray("route",ka)&&(x=W.short_name||x);-1!==m.inArray("street_number",ka)&&(D=W.short_name||D);-1!==m.inArray("postal_code",ka)&&(J=W.short_name||J)})});this.setItem("address",{country:p||"",countryCode:q||"",city:y||"",street:x||"",streetNumber:D||"",region:F||"",name:I||"",postalCode:J||""});this.setItem("addressDetailsOf",{latitude:this.getItem("latitude"),longitude:this.getItem("longitude")})}return k};d.prototype.failureHandler=function(k){ContextHub.console.log("Error while getting geolocation information:",
k)};d.prototype.storeLocation=function(k,p){k=m.extend(p,k);this.setItem("latitude",parseInt(1E6*k.latitude,10)/1E6);this.setItem("longitude",parseInt(1E6*k.longitude,10)/1E6)};d.prototype.areCoordinatesSet=function(){return m.isNumeric(this.getItem("latitude"))&&m.isNumeric(this.getItem("longitude"))};d.prototype.queryService=function(k,p){var q=this;p&&!this.areCoordinatesSet()&&(p=!1);p?this.generateSignature(function(){q.uber("queryService",k)}):m.when(this.getCoordinates()).then(function(y){q.storeLocation(y.coords||
{},q.config.initialValues.defaultLocation);q.generateSignature(function(){q.uber("queryService",k)})},function(y){q.failureHandler(y);q.storeLocation({},q.config.initialValues.defaultLocation);q.generateSignature(function(){q.uber("queryService",k)})})};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"contexthub.geolocation",30,function(k){var p=null;this.store!==k&&(p=ContextHub.Utils.storeCandidates.getStoreFromCandidates({type:"contexthub.geolocation",required:!0}));return"geolocation"in
t.navigator&&!p})})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] cq.contexthub - store.clientcontext-backedstore.js (clientcontext connector)");
(function(m){window.ContextHub.Store=window.ContextHub.Store||{};ContextHub.Store.ClientContextBackedStore=function(){};ContextHub.Utils.inheritance.inherit(ContextHub.Store.ClientContextBackedStore,ContextHub.Store.PersistedJSONPStore);ContextHub.Store.ClientContextBackedStore.defaultConfig={mappingConfig:{propertyMapping:{},mapOtherProperties:!0,replicateToClientContext:!0}};ContextHub.Store.ClientContextBackedStore.prototype.init=function(t,n){this.uber("init",t,n);this.config=m.extend(!0,{},this.config,
ContextHub.Store.ClientContextBackedStore.defaultConfig,n)};ContextHub.Store.ClientContextBackedStore.prototype.successHandler=function(t){var n=this.isEventingPaused(),d=this.config.mappingConfig.clientContextStoreName,c={},h;if(!this.preventSelfUpdating){this.preventSelfUpdating=!0;t=t||function(p,q){return q};this.pauseEventing();this.setItem("/",{});m.each(this.config.mappingConfig.propertyMapping,function(p,q){c[q]=!0;h=ClientContext.get(d+"/"+q);h=t(q,h);this.setItem("/"+p,h)}.bind(this));if(this.config.mappingConfig.mapOtherProperties){var k=
ClientContext.get(d).data||{};m.each(k,function(p,q){c[p]||(q=t(p,q),this.setItem("/"+p,q))}.bind(this))}n||this.resumeEventing();this.preventSelfUpdating=!1}};ContextHub.Store.ClientContextBackedStore.prototype.failureHandler=function(t){};ContextHub.Store.ClientContextBackedStore.prototype.queryService=function(t,n){var d=this.config.mappingConfig.clientContextStoreName,c=this,h=function(){var k=ClientContext.get(d),p=c.isEventingPaused();c.pauseEventing();k?(k.addListener("update",function(){!0!==
c.preventSelfUpdating&&c.successHandler(n)}),c.successHandler(n)):c.failureHandler();p||c.resumeEventing();c.announceReadiness()};ClientContext.get(d)?h():CQ_Analytics.ClientContextMgr.addListener("storeregister",function(k,p){p.STORENAME===d&&h()})};ContextHub.Store.ClientContextBackedStore.prototype.setItem=function(t,n){this.uber("setItem",t,n);if(this.config.mappingConfig.replicateToClientContext&&!0!==this.preventSelfUpdating&&(t=t.replace(/^\//,""),t.length)){var d=this.config.mappingConfig.propertyMapping[t];
!d&&this.config.mappingConfig.mapOtherProperties&&(d=t);d&&ClientContext.set(this.config.mappingConfig.clientContextStoreName+"/"+d,n)}};ContextHub.Store.ClientContextBackedStore.prototype.removeItem=function(t){this.uber("removeItem",t);if(this.config.mappingConfig.replicateToClientContext&&!0!==this.preventSelfUpdating){var n=t.replace(/^\//,"");n.length&&(t=this.config.mappingConfig.propertyMapping[n],!t&&this.config.mappingConfig.mapOtherProperties&&(t=n),t&&(n=CQ_Analytics.StoreRegistry.getStore(this.config.mappingConfig.clientContextStoreName))&&
n.removeProperty(t))}}})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.geolocation - store.clientcontext-geolocation.js (clientcontext connector)");
(function(m){var t={mappingConfig:{clientContextStoreName:"geolocation",propertyMapping:{},mapOtherProperties:!0,replicateToClientContext:!0}},n=function(d,c){this.config=m.extend(!0,{},t,c);this.init(d,this.config);this.queryService(!0)};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.ClientContextBackedStore);n.prototype.loadLocation=function(d){var c=ClientContext.get(this.config.mappingConfig.clientContextStoreName);c&&(c.setProperties(d),c.fireEvent("update"))};n.prototype.reset=function(){var d=
ClientContext.get(this.config.mappingConfig.clientContextStoreName);d&&d.reset()};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"contexthub.geolocation",20,function(){return!!window.ClientContext})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.contexthub.surferinfo - store.surferinfo.js");
(function(m,t){function n(k,p){this.init(k,p);this.config=m.extend({},this.config,p);this.readData()}var d,c=function(k,p){var q={};q[k]=p;d=m.extend(!0,d,q);return q},h=function(){var k,p="Opera Chromium Chrome Safari Edge Trident MSIE Firefox AppleWebKit".split(" "),q=t.navigator.userAgent;(k=q.match(new RegExp("( |^)("+p.join("|")+")(/| )[0-9.]*","ig")))?(k=m.map(k,function(y){y=m.trim(y).split(/[\/ ]/);return{version:y.pop(),family:y.pop()}}),k=k.sort(function(y,x){return y.family===x.family?
y.version<x.version?-1:1:m.inArray(y.family,p)<m.inArray(x.family,p)?-1:1}),k=k.shift(),"Trident"===k.family&&(k.family="MSIE",k.version={"7.0":"11","6.0":"10","5.0":"9","4.0":"8"}[k.version])):k={version:"Unresolved",family:"Unresolved"};return m.extend(k,{userAgent:q})};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedStore);n.prototype.readData=function(){d={};var k=this.getItem("display"),p=t.devicePixelRatio||1;if(!k){k=t.screen.colorDepth;var q={width:t.screen.width*p,height:t.screen.height*
p},y=Math.pow(2,k),x=m("\x3cdiv\x3e").css({width:"1in",visibility:"hidden",position:"absolute",top:0,left:0});x.appendTo(m("body"));var D=x.innerWidth();x.detach();var F=t.orientation;"undefined"===typeof F?(x=t.screen.width>t.screen.height?"landscape":"portrait",F="normal"):-90===F||90===F?(x="landscape",F=90===F?"left":"right"):(x="portrait",F=0===F?"normal":"upside-down");k=c("display",{resolution:q,devicePixelRatio:p,colorDepth:k,nrOfColors:y,pixelsPerInch:D,orientation:{mode:x,direction:F}}).display.resolution}this.getItem("window")||
(p=c("window",{dimension:{width:m(t).innerWidth()*p,height:m(t).innerHeight()*p}}).window.dimension,c("window",{percentageUsage:Math.floor(p.width*p.height/(k.width*k.height)*100)/100}));this.getItem("browser")||c("browser",h());p=null;k=t.navigator.userAgent;D=k.match(/mobile|touch/i);x=k.match(/tablet/i);F=k.match(/iphone/i);var J=k.match(/ipod/i),I=k.match(/ipad/i),O=k.match(/htc/i),ja=k.match(/(BlackBerry)([^/]*)\/([0-9.]*)/i),ka=k.match(/GT-([^ ]*)/),W=k.match(/ipad|ipod|iphone/i);q=k.match(/android/i);
var fa=k.match(/windows/i),Ea=k.match(/(mobile|tablet);/i)&&k.match(/; rv:/i);y="Desktop";F||J||q&&D||fa&&D||ja&&D||Ea&&D?y="Mobile":(I||q&&x||fa&&x||ja&&x||Ea&&x)&&(y="Tablet");if(W){p="iOS";var sa=W.shift();var oa=(k.match("OS ([0-9_]*)")||[""]).pop().replace(/_/g,".")}!p&&fa&&(p="windows");!p&&O&&(p="Android",sa=O.shift(),oa=(k.match("HTC[_ /]([^ _;-]*)")||[""]).pop());!p&&ja&&4===ja.length&&(p="Blackberry",sa=ja.slice(1,3).join(" "),oa=ja.pop());!p&&ka&&(oa=ka.pop(),p="Android",sa="Samsung "+
({I90:"Galaxy S",I91:"Galaxy S II",I93:"Galaxy S III",I95:"Galaxy S IV",N70:"Note",N71:"Note II",P31:"Tab",P51:"Tab II"}[oa.slice(0,3)]||"GT-"+oa),oa=(k.match("Android ([0-9.]*)")||[oa]).pop());!p&&q&&(p="Android",sa="Unresolved",oa=(k.match("Android ([0-9.]*)")||[""]).pop());p||(p="Desktop",sa="PC",oa="");sa={category:y,type:p,model:sa,version:oa};this.getItem("device")||c("device",sa);this.getItem("isMobile")||c("isMobile","desktop"!==sa.type);if(!this.getItem("os")){sa=null;oa=t.navigator.userAgent;
if(oa.match(/Mac OS X|Macintosh/)){sa="Mac OS X";var ya=(oa.match(/(Mac OS X|CPU OS) ([0-9_]*)/)||[""]).pop().replace(/_/g,".");ya=(oa.match(/iPod|iPad|iPhone/)?"iOS ":"")+ya}sa||-1===oa.indexOf("Windows")||(sa="Windows",ya={"NT 10.0":"10","NT 6.3":"8.1","NT 6.2":"8","NT 6.1":"7","NT 6.0":"Vista","NT 5.2":"XP x64","NT 5.1":"XP","NT 5.01":"2000 SP1","NT 5.0":"2000","NT 4.0":"NT 4.0",98:"98","NT 95":"95","NT CE":"CE"}[oa.match(/Windows (.+?);/).pop()],"98"===ya&&-1!==oa.indexOf("Win 9x 4.90")&&(ya=
"ME"));!sa&&oa.match(/Linux/)&&(sa="Linux",ya=null);!sa&&oa.match(/Android/)&&(sa="Android",ya=(oa.match("Android ([0-9.]*)")||[""]).pop());c("os",{name:sa||"Unresolved",version:ya||"Unresolved"})}ya=new Date;d.year=ya.getFullYear();d.month=ya.getMonth()+1;d.day=ya.getDate();d.hour=ya.getHours();d.minutes=ya.getMinutes();this.addAllItems(d,{defer:0})};n.prototype.reset=function(k){this.uber("reset",k);this.readData()};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"contexthub.surferinfo",
0)})(ContextHubJQ,this);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.granite.profile - store.profile.js");
(function(m){var t={service:{jsonp:!1,timeout:1E3,path:"${contexthub:/store/profile/path}.infinity.json"},initialValues:{path:ContextHub.Constants.ANONYMOUS_HOME||"/home/users/a/anonymous"}},n=function(c){c=(new Date(c)).getTime();return~~((Date.now()-c)/315576E5)},d=function(c,h){this.config=m.extend(!0,{},t,h);this.init(c,this.config);this.onUpdate("age-update",function(k,p){var q=p.keys.set.hash["/birthday"];if(q){var y=this;window.setTimeout(function(){y.setItem("age",n(q.value))},50)}});this.queryService(!1)};
ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.PersistedJSONPStore);d.prototype.successHandler=function(c){this.pauseEventing();var h=this.getItem("path");h&&(h=Granite.HTTP.externalize(h));var k=m.extend(!0,{},c.profile),p=!!ContextHub.Utils.JSON.tree.getItem(k,"/photos/primary/image"),q=/\/(jcr|sling|):/;m.each(ContextHub.Utils.JSON.tree.getKeys(k),function(y,x){x.match(q)&&(k=ContextHub.Utils.JSON.tree.removeItem(k,x))});k=ContextHub.Utils.JSON.tree.setItem(k,"path",h);p&&(k=ContextHub.Utils.JSON.tree.setItem(k,
"avatar",h+"/profile/photos/primary/image"));k.birthday&&(k=ContextHub.Utils.JSON.tree.setItem(k,"age",n(k.birthday)));k.authorizableId=k.authorizableId||c["rep:authorizableId"];c="anonymous";k.givenName&&k.familyName?c=parent.Granite.I18n.get("{0} {1}",[k.givenName,k.familyName],"name display order: {0} is the given (first) name, {1} the family (last) name"):k.givenName?c=k.givenName:k.familyName?c=k.familyName:k.authorizableId&&(c=k.authorizableId);k=ContextHub.Utils.JSON.tree.setItem(k,"displayName",
c);this.setItem("/",k);c="anonymous"===k.displayName?"anonymous":k.authorizableId;ContextHub.Shared.CookieContainer.setItem("SessionPersistence","PROFILEDATA",c?"authorizableId\x3d"+c:null);this.resumeEventing()};d.prototype.loadProfile=function(c){var h=ContextHub.getStore("profile");h.setItem("path",c?Granite.HTTP.externalize(c):c);h.queryService(!0)};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"granite.profile",0)})(ContextHubJQ);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.granite.profile - store.clientcontext-profile.js (clientcontext connector)");
(function(m){var t={mappingConfig:{clientContextStoreName:"profile",propertyMapping:{displayName:"formattedName",path:"path",avatar:"avatar"},mapOtherProperties:!0,replicateToClientContext:!0}},n=function(c,h){"path"===c&&"string"===typeof h&&(h=h.replace(/\/profile$/,""));return h},d=function(c,h){this.config=m.extend({},!0,t,h);this.init(c,this.config);this.queryService(!0,n)};ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.ClientContextBackedStore);d.prototype.loadProfile=function(c){c=
(c||"").split("/").pop();c.length&&ClientContext.get(this.config.mappingConfig.clientContextStoreName).loadProfile(c)};d.prototype.reset=function(){var c=ClientContext.get(this.config.mappingConfig.clientContextStoreName);c&&c.reset()};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"granite.profile",10,function(){return!!window.ClientContext})})(ContextHubJQ);
(function(m,t){m.Granite=m.Granite||{};m.Granite.author=m.Granite.author||{};var n=function(d){this.document=d;this._getRules()};n.getNativeDevice=function(){var d=m.innerWidth||document.documentElement.clientWidth,c=m.innerHeight||document.documentElement.clientHeight,h=m.screen.width,k=m.screen.height;var p=document.body;var q=document.createElement("div");p.appendChild(q);q.style.width="1in";var y=document.defaultView.getComputedStyle(q,null).getPropertyValue("width");p.removeChild(q);p=parseFloat(y);
d={type:"screen",width:d,height:c,"device-width":h,"device-height":k,"device-pixel-ratio":1,resolution:p,scan:"progressive",grid:!1,color:m.screen.colorDepth,"color-index":m.screen.pixelDepth,monochrome:0};d["aspect-ratio"]=d.width/d.height;d.orientation=d.width>d.height?"landscape":"portrait";d["device-aspect-ratio"]=d["device-width"]/d["device-height"];return d};n.prototype={};Object.defineProperty(n.prototype,"appliedStyleSheet",{get:function(){for(var d=!0,c=this._appliedStyleSheet;c&&(c=c.parentNode);)if(c===
this.document){d=!1;break}if(!this._appliedStyleSheet||d)d=this.document,c=d.createElement("style"),c.appendChild(d.createTextNode("")),d.head.appendChild(c),this._appliedStyleSheet=c;return this._appliedStyleSheet}});n.prototype._getRules=function(){var d=[],c=n.parser.getMediaRules(this.document),h,k;for(h=0;h<c.length;h++){var p=[];var q=n.parser.parseMediaRule(c[h].media.mediaText);for(k=0;k<c[h].cssRules.length;k++)p.push(c[h].cssRules[k].cssText);d.push({mediaText:c[h].media.mediaText,cssRules:p,
parsed:q,mediaRule:c[h]})}this.rules=d};n.prototype.removeMediaRules=function(){for(var d=0;d<this.rules.length;d++)for(;this.rules[d].mediaRule.cssRules[0];)this.rules[d].mediaRule.deleteRule(0)};n.prototype.clear=function(){document.head.removeChild(this.appliedStyleSheet);this.appliedStyleSheet=null};n.prototype.restore=function(){var d,c;document.head.removeChild(this.appliedStyleSheet);this.appliedStyleSheet=null;for(d=0;d<this.rules.length;d++)try{var h=this.rules[d];for(c=0;c<h.cssRules.length;c++)h.mediaRule.insertRule(h.cssRules[c],
h.mediaRule.cssRules.length)}catch(k){}};n.prototype.applyDevice=function(d){var c,h;this.clear();this.removeMediaRules();this.appliedStyleSheet.sheet.insertRule("html, body { width: "+d.width+"px; }",0);for(c=0;c<this.rules.length;c++)try{var k=this.rules[c];if(n.parser.matchDevice(k.parsed,d))for(h=0;h<k.cssRules.length;h++)this.appliedStyleSheet.sheet.insertRule(k.cssRules[h],this.appliedStyleSheet.sheet.cssRules.length)}catch(p){}};n.prototype.prepareDevice=function(d){var c={type:d.type||"screen",
"device-pixel-ratio":d["device-pixel-ratio"]||1,resolution:d.resolution||96,scan:d.scan||"progressive",grid:!!d.grid,color:d.color||8,"color-index":d["color-index"]||0,monochrome:d.monochrome||0};c.width=Math.floor(d.width/c["device-pixel-ratio"]);c.height=Math.floor(d.height/c["device-pixel-ratio"]);c["device-width"]=d["device-width"]||c.width;c["device-height"]=d["device-height"]||c.height;c["aspect-ratio"]=d["aspect-ratio"]||d.width/d.height;c.orientation=d.orientation||(d.width>d.height?"landscape":
"portrait");c["device-aspect-ratio"]=d["device-aspect-ratio"]||d["device-width"]/d["device-height"];return c};m.Granite.author.MediaEmulator=n})(this);
(function(m,t){function n(x){var D=Number(x);D||(x=x.match(/^(\d+)\s*\/\s*(\d+)$/),D=x[1]/x[2]);return D}function d(x){var D=parseFloat(x);switch(String(x).match(y)[1]){case "dpcm":return D/2.54;case "dppx":return 96*D;default:return D}}function c(x){var D=parseFloat(x);switch(String(x).match(q)[1]){case "em":return 16*D;case "rem":return 16*D;case "cm":return 96*D/2.54;case "mm":return 96*D/2.54/10;case "in":return 96*D;case "pt":return 72*D;case "pc":return 72*D/12;default:return D}}var h=/^(?:(only|not)?\s*([_a-z][_a-z0-9-]*)|(\([^\)]+\)))(?:\s*and\s*(.*))?$/i,
k=/^\(\s*([_a-z-][_a-z0-9-]*)\s*(?::\s*([^\)]+))?\s*\)$/,p=/^(?:(min|max)-)?(.+)/,q=/(em|rem|px|cm|mm|in|pt|pc)?\s*$/,y=/(dpi|dpcm|dppx)?\s*$/;Granite.author.MediaEmulator.parser={getMediaRules:function(x){x=x.styleSheets;var D=[];for(var F=0;F<x.length;F++)try{var J=x[F];var I=J.cssRules;for(var O=0;O<(I?I.length:0);O++){var ja=I[O];ja.type===CSSRule.MEDIA_RULE&&D.push(ja)}}catch(ka){}return D},parseMediaRule:function(x){return x.split(",").map(function(D){D=D.trim().match(h);var F=((D[3]||"")+(D[4]||
"")).trim().match(/\([^\)]+\)/g),J={};J.not=!!D[1]&&"not"===D[1].toLowerCase();J.type=D[2]?D[2].toLowerCase():"all";J.expressions=F?F.map(function(I){I=I.match(k);var O=I[1].toLowerCase().match(p);return{modifier:O[1],feature:O[2],value:I[2]}}):[];return J})},matchDevice:function(x,D){for(var F,J,I=0;I<x.length;I++)if(F=x[I],J="all"===F.type||D.type===F.type,!(J&&F.not||!J&&!F.not)&&((J=F.expressions.every(function(O){var ja=O.feature,ka=O.modifier;O=O.value;var W=D[ja];if(!W)return!1;switch(ja){case "orientation":case "scan":return W.toLowerCase()===
O.toLowerCase();case "width":case "height":case "device-width":case "device-height":O=c(O);W=c(W);break;case "resolution":O=d(O);W=d(W);break;case "aspect-ratio":case "device-aspect-ratio":case "device-pixel-ratio":O=n(O);W=n(W);break;case "grid":case "color":case "color-index":case "monochrome":O=parseInt(O,10)||1,W=parseInt(W,10)||0}switch(ka){case "min":return W>=O;case "max":return W<=O;default:return W===O}}))&&!F.not||!J&&F.not))return!0}}})(this);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.granite.emulators - store.emulators.js");
(function(m){var t={defaultEmulators:[{id:"ipad",title:"iPad",type:"tablet",platform:"iOS",platformVersion:"5.1.1",width:768,height:1024,canRotate:!0,orientation:"Portrait","device-pixel-ratio":1},{id:"ipad-2",title:"iPad 2",type:"tablet",platform:"iOS",platformVersion:"8.1.3",width:768,height:1024,canRotate:!0,orientation:"Portrait","device-pixel-ratio":1},{id:"ipad-3",title:"iPad 3 / 4 / Air",type:"tablet",platform:"iOS",platformVersion:"8.1.3",width:1536,height:2048,canRotate:!0,orientation:"Portrait",
"device-pixel-ratio":2},{id:"iphone-4",title:"iPhone 4",type:"mobile",platform:"iOS",platformVersion:"7.1.2",width:640,height:960,canRotate:!0,orientation:"Portrait","device-pixel-ratio":2},{id:"iphone-5",title:"iPhone 5",type:"mobile",platform:"iOS",platformVersion:"8.1.3",width:640,height:1136,canRotate:!0,orientation:"Portrait","device-pixel-ratio":2},{id:"iphone-6",title:"iPhone 6",type:"mobile",platform:"iOS",platformVersion:"8.1.3",width:750,height:1334,canRotate:!0,orientation:"Portrait","device-pixel-ratio":2},
{id:"iphone-6-plus",title:"iPhone 6 Plus",type:"mobile",platform:"iOS",platformVersion:"8.1.3",width:1080,height:1920,canRotate:!0,orientation:"Portrait","device-pixel-ratio":3},{id:"galaxy-s4",title:"Samsung Galaxy S4",type:"mobile",platform:"Android",platformVersion:"4.4.2 KitKat",width:1080,height:1920,canRotate:!0,orientation:"Portrait","device-pixel-ratio":3}]},n=function(d,c){this.config=m.extend(!0,{},t,c);c=this.getSupportedEmulators();m.extend(!0,this.config,{initialValues:{devices:c,currentDeviceId:c[0].id,
orientations:[{id:"landscape",title:"Landscape"},{id:"portrait",title:"Portrait"}]}});this.init(d,this.config);this.mediaEmulator=null;window.Granite&&Granite.author&&Granite.author.MediaEmulator&&(this.mediaEmulator=new Granite.author.MediaEmulator(window.document));this.emulateDevice(this.getItem("currentDeviceId")||"native")};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedStore);n.prototype.detectNativeDevice=function(){var d=window.innerWidth||document.documentElement.clientWidth,
c=window.innerHeight||document.documentElement.clientHeight,h=d>c?"Landscape":"Portrait",k=ContextHub.get("surferinfo/os/name")||"",p=ContextHub.get("surferinfo/os/version")||"";return{id:"native",title:"Native",type:"screen",width:d,height:c,orientation:h,platform:k,platformVersion:p,canRotate:!/mac os x|windows/i.test(k)}};n.prototype.getSupportedEmulators=function(){return m.merge([this.detectNativeDevice()],this.config.defaultEmulators)};n.prototype.emulateDevice=function(d){var c=d?this.getDeviceById(d):
ContextHub.get("emulators/currentDevice");c&&this.mediaEmulator&&(this.setItem("currentDeviceId",c.id),this.setItem("currentDevice",c),"native"===d?this.mediaEmulator.restore():this.mediaEmulator.applyDevice(c),this.eventing.trigger("emulating-device:"+c.id,{device:c}));return c};n.prototype.getDeviceById=function(d){var c=null,h=this.getItem("devices")||[];m.each(h,function(k,p){p.id===d&&(c=p);return null===c});return c};n.prototype.reset=function(){this.uber("reset");var d=this.getItem("currentDeviceId");
this.emulateDevice(d)};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"granite.emulators",0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.aem.analyticsdata - store.analyticsdata.js");(function(m){var t={},n=function(d,c){this.init(d,this.config);this.config=m.extend(!0,{},t,c)};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.SessionStore);ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"aem.analyticsdata",0)})(ContextHubJQ);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.aem.pagedata - store.pagedata.js");
(function(m){var t={forceExperienceCookie:"cq-forceexperience",service:{jsonp:!1,timeout:1E3,path:"${variable:ContextHub.Paths.RESOURCE_PATH}.pagedata.json"}},n=function(d,c){this.config=m.extend(!0,{},t,c);this.init(d,this.config);this.queryService(!0)};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedJSONPStore);n.prototype.successHandler=function(d){this.setItem("/",d||{})};n.prototype.setExperience=function(d){ContextHub.Utils.Cookie.setItem(this.config.forceExperienceCookie,d,
{path:"/"})};n.prototype.getExperience=function(){return ContextHub.Utils.Cookie.getItem(this.config.forceExperienceCookie)};n.prototype.clearExperience=function(){ContextHub.Utils.Cookie.removeItem(this.config.forceExperienceCookie)};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"aem.pagedata",0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.aem.segmentation - store.segmentation.js");
(function(m){var t={service:{script:!0,timeout:3E3,path:window.ContextHub.Paths.SEGMENTATION_PATH+".seg.js"}},n=function(c,h){this.config=m.extend(!0,{},t,h);this.init(c,this.config);this.refreshData();ContextHub.eventing.on(ContextHub.Constants.EVENT_SEGMENT_UPDATED,function(){requestAnimationFrame(this.refreshData.bind(this))}.bind(this));ContextHub.isOptedOut()?this.announceReadiness():this.reloadSegments()};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedJSONPStore);n.prototype.reset=
function(c){ContextHub.SegmentEngine.SegmentManager.unregisterAllSegments();this.uber("reset",c)};n.prototype.queryService=function(c){ContextHub.isOptedOut()||this.uber("queryService",c)};n.prototype.reloadSegments=function(){this.reset()};var d=function(c){c=parseInt(c,10)||0;if(0>=c)c="No segment";else if(5>=c)c=c+" segment"+(1<c?"s":"");else{var h=5*Math.floor(c/5);c=(c===h?"":"More than ")+h+" segments"}return c};n.prototype.refreshData=function(){var c=[];m.each(ContextHub.SegmentEngine.getResolvedSegments(),
function(k,p){if(k=p.getPath()){var q=k+".html";p={label:p.getTitle()||p.getName()||k,link:q,path:k};c.push(p)}});var h=c.length;this.setItem("segments",c);this.setItem("summary",d(h));return c};n.prototype.getResolvedSegments=function(){return ContextHub.SegmentEngine.SegmentManager.getResolvedSegments()};n.prototype.getUnresolvedSegments=function(){return ContextHub.SegmentEngine.SegmentManager.getUnresolvedSegments()};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"aem.segmentation",
0,function(){return!!ContextHub.SegmentEngine})})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.campaign.metadata - store.campaign.metadata.js");
(function(m,t){var n={service:{jsonp:!1,ttl:0,secure:"auto",host:document.location.host,port:80,path:Granite.HTTP.externalize(Granite.HTTP.getPath()+"/_jcr_content.campaign.metadata.json")},persistence:ContextHub.Utils.Persistence({mode:ContextHub.Utils.Persistence.Modes.WINDOW})},d=m("#campaignContextHub");d.length&&(n.service.method=d.data("metadata-method")||"GET",t=d.data("path"))&&(n.service.path=Granite.HTTP.externalize(t+"/_jcr_content.campaign.metadata.json"));t=function(c,h){this.config=
m.extend(!0,{},n,h);this.dataAvailable=!1;this.init(c,this.config);this.setItem("/",{},{silent:!0});this.queryService(!0)};ContextHub.Utils.inheritance.inherit(t,ContextHub.Store.JSONPStore);m.extend(t.prototype,{isOldMetaDataFormat:function(){var c=this.getItem("/_/version");return!!c&&1===c},isDataAvailable:function(){return this.dataAvailable},getMetadataVariable:function(c){function h(k,p){var q=p.indexOf(".");-1==q&&(q=p.length);var y=p.substring(0,q);return k.hasOwnProperty(y)?q==p.length?k[y]:
h(k[y].content,p.substring(q+1)):null}return h(this.getTree(),c)},getFilteredTree:function(c){function h(p){for(var q in p)if(p.hasOwnProperty(q))if(p[q].type&&!c(p[q]))delete p[q];else if(p[q].content){p[q].content=h(p[q].content);var y=!0,x;for(x in p[q].content)if(p[q].content.hasOwnProperty(x)){y=!1;break}y&&delete p[q]}return p}var k=m.extend(!0,{},this.getTree());return h(k)},convertToColumnViewFormat:function(c){function h(k,p){var q=[],y;for(y in k)k.hasOwnProperty(y)&&(q.push(k[y]),k[y].key=
y);q.sort(function(J,I){return J.hasOwnProperty("order")&&I.hasOwnProperty("order")?J.order<I.order?-1:1:J.hasOwnProperty("order")?1:J.label.localeCompare(I.label)});k=[];for(y=0;y<q.length;y++){var x=q[y],D=p+(p?".":"")+x.key,F={_links:{self:{href:D,title:x.label}},properties:{}};x.tag&&(F.value=x.tag);x.type&&(F.type=x.type);if(x.content){F.icon="tags";F.hasChildren=!0;x=h(x.content,D);if(!x.length)continue;F._embedded={items:x}}else F.icon="tag";k.push(F)}return k}return{_links:{self:{href:"foo"}},
_embedded:{items:h(c,"")}}},successHandler:function(c){if(c){this.dataAvailable=!0;var h=c.hasOwnProperty("schema")?1:2;this.setItem("/_/version",h);this.setItem("/",c)}return c},failureHandler:function(c){ContextHub.console.log("Error while getting mcm campaign metadata information:",c)}});ContextHub.Utils.storeCandidates.registerStoreCandidate(t,"campaign.metadata",0,function(){return 0<d.length&&!!d.attr("data-register")})})(ContextHubJQ,window);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.campaign.seeddata - store.campaign.seeddata.js");
(function(m,t){var n=!1;t=(new RegExp(/(^[a-zA-Z0-9\/_-]+)*(\.[a-zA-Z]+)?/)).exec(document.location.pathname);var d="";t&&(d=t[1]+"/_jcr_content.campaign.seeddata.json");var c={service:{jsonp:!1,ttl:0,secure:"auto",host:document.location.host,port:80,path:d+"/${contexthub:/store/profile/campaign/seedId}"},persistence:ContextHub.Utils.Persistence({mode:ContextHub.Utils.Persistence.Modes.WINDOW})};t=function(h,k){this.config=m.extend(!0,{},c,k);this.init(h,this.config)};ContextHub.Utils.inheritance.inherit(t,
ContextHub.Store.JSONPStore);m.extend(t.prototype,{successHandler:function(h){h&&this.setItem("/",h);return h},failureHandler:function(h){ContextHub.console.log("Error while getting mcm campaign seeddata information:",h)},queryService:function(h){n&&this.uber("queryService",h)}});ContextHub.Utils.storeCandidates.registerStoreCandidate(t,"campaign.seeddata",0,function(){var h=m("#campaignContextHub").eq(0);if(h=0<h.length&&!!h.attr("data-register"))ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+
":profile",function(k,p){if(k=ContextHub.getStore("seeddata")){k.setItem("/",{});if(p=ContextHub.getStore("profile"))p=p.getItem("/"),n=!!(p&&p.campaign&&p.campaign.seedId);n&&k.queryService(!1)}});return h})})(ContextHubJQ,window);
(function(m,t){function n(c,h){this.config=m.extend({},d,h);this.init(c,this.config);var k=this,p=1;ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":profile",function(q,y){k.setItem("tickle",p++)});ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":cart",function(q,y){k.setItem("tickle",p++)})}var d={maxCount:20};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.PersistedStore);n.prototype.recent=function(c,h){var k=this.getItem("products")||[],p=[],q=ContextHub.getStore("cart");
q||(h=!1);for(var y=k.length-1;0<=y&&0<c;y--){var x=k[y];h&&q.containsProduct(x.path)||(p.push(x),c--)}return p};n.prototype.record=function(c,h,k,p){for(var q=JSON.parse(JSON.stringify(this.getItem("products")||[])),y=0;y<q.length;y++)if(q[y].path==c){q.splice(y,1);break}q.length==this.config.maxCount&&q.shift();q.push({path:c,title:h,image:k,price:p});this.setItem("products",q)};n.prototype.remove=function(c){for(var h=JSON.parse(JSON.stringify(this.getItem("products")||[])),k=0;k<h.length;k++)if(h[k].path==
c){h.splice(k,1);break}this.setItem("products",h)};n.prototype.reset=function(c){this.uber("reset",c);this.setItem("products",[])};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"commerce.abandonedproducts",0)})(ContextHubJQ,this);
(function(m){function t(d,c){this.config=m.extend(!0,{},n,c);this.init(d,this.config);var h=this,k=1;ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":cart",function(p,q){h.setItem("tickle",k++)})}var n={maxCount:20};ContextHub.Utils.inheritance.inherit(t,ContextHub.Store.PersistedStore);t.prototype.recent=function(d,c){var h=this.getItem("products")||[],k=[],p=ContextHub.getStore("cart");p||(c=!1);for(var q=h.length-1;0<=q&&0<d;q--){var y=h[q];c&&p.containsProduct(y.path)||(k.push(y),
d--)}return k};t.prototype.record=function(d,c,h,k){for(var p=JSON.parse(JSON.stringify(this.getItem("products")||[])),q=0;q<p.length;q++)if(p[q].path==d){p.splice(q,1);break}p.length==this.config.maxCount&&p.shift();p.push({path:d,title:c,image:h,price:k});this.setItem("products",p)};t.prototype.reset=function(d){this.uber("reset",d);this.setItem("products",[])};ContextHub.Utils.storeCandidates.registerStoreCandidate(t,"commerce.recentlyviewed",0)})(ContextHubJQ);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.commerce.cart - store.cart.js");
(function(m){function t(c){if(c){var h=c.lastIndexOf("#");-1<h&&(c=c.substring(0,h));h=c.lastIndexOf(".html");-1<h&&(c=c.substring(0,h))}return c}m.extend(!0,{HTTP:{externalize:function(c){return c}}},window.top.window.Granite);var n={service:{jsonp:!1,timeout:1E3,ttl:0,path:"${resourcePath}.commerce.cart.json"}},d=function(c,h){this.config=m.extend({},n,h);this.init(c,this.config);this.queryService(!1);var k=this;ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":segmentation",function(p,
q){k.resolvePromotions()})};ContextHub.Utils.inheritance.inherit(d,ContextHub.Store.PersistedJSONPStore);d.prototype.getServiceDetails=function(){this.config.service.path&&(this.config.service.path=this.config.service.path.replace(/\${resourcePath}/g,ContextHub.Paths.RESOURCE_PATH));return this.config.service};d.prototype.queryService=function(c,h){var k=this.getServiceURL(!0);if(k){c&&this.removeItem("_",{silent:!0});c={ignorePost:!0};h&&(c=this.getTree());window.ContextHub=m.extend({Callbacks:{}},
window.ContextHub);ContextHub.Callbacks[this.name]=this.callbackFunction.bind(this);h=this.config.service.timeout;var p=this,q=p.isEventingPaused();p.pauseEventing();this.duration=0;ContextHub.Shared.timers.start(this.name);m.ajax({url:k,type:"POST",data:{cart:ContextHub.Utils.JSON.stringify(c)},timeout:h}).done(function(y,x,D){ContextHub.Callbacks[p.name](ContextHub.Utils.JSON.parse(D.responseText));p.eventing.trigger("push-success:"+p.name)}).fail(function(y){p.failureHandler(y)}).always(function(){q||
p.resumeEventing();p.announceReadiness()})}};d.prototype.successHandler=function(c){var h=this.getItem("_");this.setItem("/",c);this.setItem("_",h);this.updateSimulatedPrice()};d.prototype.setSimulatedPrice=function(c){this.getItem("/_/simulatedTotalPrice")||this.setItem("/_/referenceTotalPrice",this.getItem("totalPriceFloat"),{silent:!0});this.setItem("/_/simulatedTotalPrice",c,{silent:!0});this.uber("setItem","totalPriceFloat",c);this.setItem("totalPrice",this.getItem("totalPrice").replace(/[0-9]+\.[0-9]+/,
parseFloat(c).toFixed(2)))};d.prototype.updateSimulatedPrice=function(){var c=this.getItem("/_/simulatedTotalPrice");c&&this.getItem("/_/referenceTotalPrice")==this.getItem("totalPriceFloat")?this.setSimulatedPrice(c):this.setItem("/_/simulatedTotalPrice",null,{silent:!0})};d.prototype.addProductToCart=function(c,h,k,p,q){var y=JSON.parse(JSON.stringify(this.getItem("entries")||[]));y.push({title:k,quantity:1,path:c,pagePath:h,thumbnail:p,priceFormatted:q});this.setItem("entries",y);ContextHub.getStore("abandonedproducts")&&
ContextHub.getStore("abandonedproducts").record(h,k,p,q)};d.prototype.updateQuantity=function(c,h){var k=JSON.parse(JSON.stringify(this.getItem("entries")||[]));k.length>=c&&k[c].quantity!=h&&(k[c].quantity=h,this.setItem("entries",k))};d.prototype.addSimulatedPromotion=function(c,h){for(var k=this.getItem("/_/simulatedPromotions")||[],p=!1,q=0;q<k.length;q++)if(k[q].path==c){p=!0;break}p||(k.push({path:c,title:h}),this.setItem("/_/simulatedPromotions",k,{silent:!0}),this.resolvePromotions())};d.prototype.removeSimulatedPromotion=
function(c){for(var h=this.getItem("/_/simulatedPromotions")||[],k=-1,p=0;p<h.length;p++)if(h[p].path==c){k=p;break}0<=k&&(h.splice(k,1),this.setItem("/_/simulatedPromotions",h,{silent:!0}),this.resolvePromotions())};d.prototype.getSimulatedPromotions=function(){return this.getItem("/_/simulatedPromotions")};d.prototype.addVoucher=function(c){for(var h=this.getItem("vouchers")||[],k=!1,p=0;p<h.length;p++)if(h[p].code==c){k=!0;break}k||(h.push({code:c}),this.setItem("vouchers",h))};d.prototype.removeVoucher=
function(c){for(var h=this.getItem("vouchers")||[],k=-1,p=0;p<h.length;p++)if(h[p].path==c){k=p;break}0<=k&&(h.splice(k,1),this.setItem("vouchers",h))};d.prototype.setItem=function(c,h,k){if(0==c.indexOf("entries")||0==c.indexOf("promotions")||0==c.indexOf("vouchers")){var p="/"+(ContextHub.Utils.JSON.tree.sanitizeKey(c)||[]).join("/");p=this.getItem(p);var q=p===h;q||(p=ContextHub.Utils.JSON.stringify(p),q=ContextHub.Utils.JSON.stringify(h),q=p===q);!1===q&&(p=function(){this.queryService(!1,!0)}.bind(this),
ContextHub.eventing.once(ContextHub.Constants.EVENT_STORE_UPDATED+":cart",p,"commerceRemoteSync"))}this.uber("setItem",c,h,k)};d.prototype.containsProduct=function(c,h){var k=c?t(c):null,p=this.getItem("entries")||[];h||(h=1);for(var q=0;q<p.length;q++){var y=p[q],x=y.page||y.pagePath||"";x=t(x);if((!c||x==k)&&(!h||y.quantity>=h))return!0}return!1};d.prototype.containsPromotion=function(c,h){c=c?t(c):null;var k=this.getItem("promotions")||[];h||(h="FIRED");for(var p=0;k&&p<k.length;p++){var q=k[p];
if((q.path?t(q.path):null)==c&&h==q.status)return!0}return!1};d.prototype.resolvePromotions=function(){var c=this.getItem("promotionsMap");if(c){var h=ContextHub.SegmentEngine.SegmentManager.getResolvedSegments({returnLookup:!0}),k={},p,q;for(p=0;p<c.length;p++){var y=c[p].segments.split(",");for(q=0;q<y.length;q++)if(h[y[q]]){k[c[p].path]=!0;break}}c=this.getItem("/_/simulatedPromotions")||[];for(p=0;p<c.length;p++)k[c[p].path]=!0;c=JSON.parse(JSON.stringify(this.getItem("promotions")||[]));for(p=
0;p<c.length;p++)c[p].resolve||k[c[p].path]?k[c[p].path]=void 0:c.splice(p--,1);for(var x in k)k.hasOwnProperty(x)&&c.push({path:x});this.setItem("promotions",c)}};d.prototype.reset=function(c){this.uber("reset",c);this.uber("setItem","entries",[],{silent:!0});this.setItem("/_/simulatedPromotions",[],{silent:!0});this.uber("setItem","promotions",[],{silent:!0});this.uber("setItem","vouchers",[],{silent:!0});this.queryService(!1,!0)};ContextHub.Utils.storeCandidates.registerStoreCandidate(d,"commerce.cart",
0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.commerce.orderhistory - store.orderhistory.js");
(function(m){var t={service:{jsonp:!1,timeout:1E3,ttl:0,path:"${resourcePath}.commerce.orderhistory.json"}},n=function(d,c){this.config=m.extend({},t,c);this.init(d,this.config);this.queryService(!1);var h=this;ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":profile",function(k,p){h.queryService(!0)})};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.JSONPStore);n.prototype.getServiceDetails=function(){this.config.service.path&&(this.config.service.path=this.config.service.path.replace(/\${resourcePath}/g,
ContextHub.Paths.RESOURCE_PATH));return this.config.service};n.prototype.successHandler=function(d){var c=this.getItem("_");this.setItem("/",d);this.setItem("_",c)};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"commerce.orderhistory",0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.commerce.relatedproducts - store.relatedproducts.js");
(function(m){var t={service:{jsonp:!1,timeout:1E3,ttl:18E5,path:"${variable:ContextHub.Paths.RESOURCE_PATH}.commerce.relatedproducts.json"}},n=function(d,c){this.config=m.extend(!0,{},t,c);this.init(d,this.config);this.cartLoaded=this.profileLoaded=!1;var h=this;this.queryService(!1);ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":profile",function(k,p){k=ContextHub.getStore("profile").getItem("authorizableId");h.profileLoaded?k!=h.lastAuthorizableId&&(h.lastAuthorizableId=k,h.queryService(!0)):
(h.profileLoaded=!0,h.lastAuthorizableId=k)});ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":cart",function(k,p){k=(ContextHub.getStore("cart").getItem("entries")||[]).length;h.cartLoaded?k!==h.lastCartEntryCount&&(h.lastCartEntryCount=k,h.queryService(!0)):(h.cartLoaded=!0,h.lastCartEntryCount=k)})};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.JSONPStore);n.prototype.successHandler=function(d){this.setItem("/",d||{})};n.prototype.products=function(d,c){for(var h=this.getTree(),
k=null,p=[],q=0;q<h.length;q++)if(h[q].type===c){k=h[q].list;break}for(q=0;k&&q<k.length&&q<d;q++)p.push(k[q]);return p};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"commerce.relatedproducts",0)})(ContextHubJQ);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.store.commerce.smartlists - store.smartlists.js");
(function(m){var t={service:{jsonp:!1,timeout:1E3,ttl:18E5,path:"${variable:ContextHub.Paths.RESOURCE_PATH}.commerce.smartlists.json"}},n=function(d,c){this.config=m.extend(!0,{},t,c);this.init(d,this.config);this.profileLoaded=!1;var h=this;this.queryService(!1);ContextHub.eventing.on(ContextHub.Constants.EVENT_STORE_UPDATED+":profile",function(k,p){k=ContextHub.getStore("profile").getItem("authorizableId");h.profileLoaded?k!=h.lastAuthorizableId&&(h.lastAuthorizableId=k,h.queryService(!0)):(h.profileLoaded=
!0,h.lastAuthorizableId=k)})};ContextHub.Utils.inheritance.inherit(n,ContextHub.Store.JSONPStore);n.prototype.successHandler=function(d){this.setItem("/",d||{})};n.prototype.products=function(d){var c=this.getTree(),h=null,k=[];if(c)if(d)for(var p=0;p<c.length;p++){if(c[p].path===d){h=c[p].entries;break}}else c[0]&&(h=c[0].entries);for(p=0;h&&p<h.length;p++)k.push(h[p]);return k};ContextHub.Utils.storeCandidates.registerStoreCandidate(n,"commerce.smartlists",0)})(ContextHubJQ);
ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.finalize - ContextHub.store-initialization.js");
(function(m,t){var n=ContextHub;t=t.ContextHubKernelConfig||{};var d=n.Shared.timers.start();n.console.log(n.Shared.timestamp(),"[+] starting registration and initialization of the stores");m.each(t.stores||{},function(c,h){var k=n.Utils.storeCandidates.getStoreFromCandidates(h);if(k)try{var p=n.Shared.timers.start(),q=n.Shared.timestamp();n.registerStore(c,new k(c,h.config));n.console.log(q,'[+] initializing "'+c+'" store ('+n.Shared.timers.finish(p)+"ms)")}catch(y){n.console.error('Store "'+h.type+
'" (',k,") could not be initialized:",y)}});n.console.log(n.Shared.timestamp(),"[+] all stores initialized ("+n.Shared.timers.finish(d)+"ms)")})(ContextHubJQ,window);ContextHub.console.log(ContextHub.Shared.timestamp(),"[loading] contexthub.finalize - ContextHub.finalization.js");
var unloadEverything=function(){if(window.ContextHub){ContextHub.eventing.disableEventing();ContextHub.eventing.unbindAllHandlers();ContextHub.SegmentEngine&&(ContextHub.SegmentEngine.SegmentManager.unregisterAllSegments(),ContextHub.SegmentEngine.ScriptManager.unregisterAllScripts());var m=ContextHub.UIFrame&&ContextHub.UIFrame[0].contentWindow;m&&m.ContextHubJQ&&(m.ContextHubJQ("*").off(),m.ContextHubJQ("html").remove());m&&(delete m.$,delete m.ContextHubJQ);delete window.ContextHubJQ;delete top.window.ContextHubJQ;
delete top.window.ContextHub}};window.onbeforeunload=unloadEverything;window.top!==window&&(window.top.onbeforeunload=unloadEverything);ContextHub.eventing.on("ui-initialized",function(){var m=ContextHub.UIFrame&&ContextHub.UIFrame[0];m&&(m.contentWindow.onbeforeunload=unloadEverything)},"unload-handler",!0);ContextHub.console.timeStamp("contexthub.stop");ContextHub.console.timeEnd("contexthub.js");